import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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": "Accueil",
    "href": "#"
  },
  {
    "name": "Menu",
    "href": "#menu"
  },
  {
    "name": "À Propos",
    "href": "#about"
  },
  {
    "name": "Contact",
    "href": "#contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Features",
    "href": "#features"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="magnetic" siteBackground="aurora" heroBackground="lightRaysCorner">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Tandem"
      ctaButton={{
        text: "Réserver",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Contact",
          items: [
            {
              label: "Casablanca, Maroc",
              href: "#",
            },
            {
              label: "+212 5 00 00 00 00",
              href: "tel:+212500000000",
            },
          ],
        },
        {
          title: "Horaires",
          items: [
            {
              label: "Ouvert tous les jours",
              href: "#",
            },
            {
              label: "Jusqu'à 23h00",
              href: "#",
            },
          ],
        },
        {
          title: "Légal",
          items: [
            {
              label: "Mentions Légales",
              href: "#",
            },
            {
              label: "Politique de confidentialité",
              href: "#",
            },
          ],
        },
      ]}
      leftText="© 2024 Tandem Kitchen & Coffee. Tous droits réservés."
      rightText="Design par Webild"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
