import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Inicio",
    "href": "#hero"
  },
  {
    "name": "Menú",
    "href": "#menu"
  },
  {
    "name": "Promociones",
    "href": "#promociones"
  },
  {
    "name": "Contacto",
    "href": "#contacto"
  },
  {
    "name": "Testimonios",
    "href": "#testimonios"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="noiseGradient" heroBackground="horizonGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Dulce Tentación"
      logoImageSrc="https://images.unsplash.com/photo-1551024601-bec78aea704b?q=80&w=256&h=256&auto=format&fit=crop"
      ctaButton={{
        text: "Pedir Ahora",
        href: "#contacto",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="Dulce Tentación"
      columns={[
        {
          title: "Menú",
          items: [
            {
              label: "Tortas",
              href: "#menu",
            },
            {
              label: "Café",
              href: "#menu",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacidad",
              href: "#",
            },
            {
              label: "Términos",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 Dulce Tentación. Todos los derechos reservados."
      imageSrc="http://img.b2bpic.net/free-photo/female-confectioner-boxing-desserts_23-2150360237.jpg"
      links={[
        {
          label: "Inicio",
          href: "#hero",
        },
        {
          label: "Menú",
          href: "#menu",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
