import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Sobre Nosotros",
    "href": "#about"
  },
  {
    "name": "Menú",
    "href": "#menu"
  },
  {
    "name": "Reseñas",
    "href": "#testimonials"
  },
  {
    "name": "Contacto",
    "href": "#contact"
  },
  {
    "name": "Pricing",
    "href": "#pricing"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloating
      logo="Sabores de Cartagena"
      ctaButton={{
        text: "Reservar Ahora",
        href: "tel:+34692663506",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="Sabores de Cartagena"
      columns={[
        {
          title: "Contacto",
          items: [
            {
              label: "C/ Canales, 5, 30201",
              href: "#",
            },
            {
              label: "692 66 35 06",
              href: "tel:+34692663506",
            },
          ],
        },
        {
          title: "Horarios",
          items: [
            {
              label: "Lun-Dom: 13:00 - 16:00",
              href: "#",
            },
            {
              label: "Noches: 20:00 - 23:30",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 Sabores de Cartagena. Todos los derechos reservados."
      imageSrc="http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-3440.jpg?_wi=2"
      links={[
        {
          label: "Inicio",
          href: "#hero",
        },
        {
          label: "Contacto",
          href: "#contact",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
