import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
  {
    "name": "História",
    "href": "#historia"
  },
  {
    "name": "Cardápio",
    "href": "#cardapio"
  },
  {
    "name": "Reservas",
    "href": "#reservas"
  },
  {
    "name": "Contato",
    "href": "#contato"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Manifesto",
    "href": "#manifesto"
  },
  {
    "name": "O Forno",
    "href": "#o-forno"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="noise" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarDropdown
      logo="FORNO NERO"
      ctaButton={{
        text: "Reservar Mesa",
        href: "#reservas",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
      brand="FORNO NERO — ONDE O FOGO ENCONTRA A PERFEIÇÃO."
      copyright="© 2026 Forno Nero. Feito com fogo, pedra e obsessão em São Paulo."
      socialLinks={[
        {
          icon: Instagram,
          href: "#",
        },
        {
          icon: Twitter,
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
