import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarInline from '@/components/ui/NavbarInline';
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": "Histoire",
    "href": "#apropos"
  },
  {
    "name": "Carte",
    "href": "#carte"
  },
  {
    "name": "Vendredi",
    "href": "#vendredi"
  },
  {
    "name": "Avis",
    "href": "#avis"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Features",
    "href": "#features"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarInline
      logo="U Bistrotellu"
      ctaButton={{
        text: "Réserver",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="U Bistrotellu"
      columns={[
        {
          title: "Contact",
          items: [
            {
              label: "04 95 20 20 24",
              href: "tel:0495202024",
            },
            {
              label: "Ajaccio, Corse",
              href: "#",
            },
          ],
        },
        {
          title: "Légal",
          items: [
            {
              label: "Mentions Légales",
              href: "#",
            },
            {
              label: "Confidentialité",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 U Bistrotellu Ajaccio. Tous droits réservés."
      links={[
        {
          label: "Twitter",
          href: "#",
        },
        {
          label: "Instagram",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
