import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarCentered from '@/components/ui/NavbarCentered';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
  {
    "name": "Home",
    "href": "hero"
  },
  {
    "name": "About Us",
    "href": "about"
  },
  {
    "name": "Amenities",
    "href": "amenities"
  },
  {
    "name": "Rooms",
    "href": "rooms"
  },
  {
    "name": "Testimonials",
    "href": "testimonials"
  },
  {
    "name": "Contact",
    "href": "contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  }
];

  return (
    <StyleProvider buttonVariant="bounce" siteBackground="noiseGradient" heroBackground="radialGradient">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      ctaButton={{
        text: "Book Now",
        href: "#contact",
      }}
      logo="The Grand Stay"
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="The Grand Stay"
      columns={[
        {
          title: "Hotel",
          items: [
            {
              label: "About Us",
              href: "#about",
            },
            {
              label: "Amenities",
              href: "#amenities",
            },
            {
              label: "Our Team",
              href: "#",
            },
            {
              label: "Careers",
              href: "#",
            },
          ],
        },
        {
          title: "Rooms",
          items: [
            {
              label: "View All Rooms",
              href: "#rooms",
            },
            {
              label: "Special Offers",
              href: "#",
            },
            {
              label: "Gallery",
              href: "#",
            },
          ],
        },
        {
          title: "Services",
          items: [
            {
              label: "Dining",
              href: "#amenities",
            },
            {
              label: "Spa & Wellness",
              href: "#amenities",
            },
            {
              label: "Concierge",
              href: "mailto:concierge@grandstayhotel.com",
            },
            {
              label: "Events",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 The Grand Stay. All rights reserved."
      links={[
        {
          label: "Privacy Policy",
          href: "#",
        },
        {
          label: "Terms of Service",
          href: "#",
        },
        {
          label: "Sitemap",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
