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": "Menu",
    "href": "#menu"
  },
  {
    "name": "Experience",
    "href": "#about"
  },
  {
    "name": "Location",
    "href": "#contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Features",
    "href": "#features"
  },
  {
    "name": "Product",
    "href": "#product"
  },
  {
    "name": "Testimonial",
    "href": "#testimonial"
  }
];

  return (
    <StyleProvider buttonVariant="bounce" siteBackground="noise" heroBackground="cornerGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="RATIONED"
      ctaButton={{
        text: "Order Now",
        href: "#order",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="RATIONED"
      columns={[
        {
          title: "Visit Us",
          items: [
            {
              label: "Nad Al Sheba, Dubai",
              href: "#",
            },
            {
              label: "Open Daily",
              href: "#",
            },
          ],
        },
        {
          title: "Social",
          items: [
            {
              label: "Instagram",
              href: "https://instagram.com/r.ationed",
            },
            {
              label: "Tripadvisor",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2025 Rationed. All rights reserved."
      links={[
        {
          label: "Privacy Policy",
          href: "#",
        },
        {
          label: "Terms of Service",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
