import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "Experience",    "href": "#about"
  },
  {
    "name": "Menu",    "href": "#menu"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Team",    "href": "#team"
  },
  {
    "name": "Faq",    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Bayi & Bayk"
      logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=rsm9na"
      ctaButton={{
        text: "Book Table",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBrand
      brand="Bayi & Bayk"
      columns={[
        {
          items: [
            {
              label: "About",              href: "#about"},
            {
              label: "Menu",              href: "#menu"},
            {
              label: "Reservations",              href: "#contact"},
          ],
        },
        {
          items: [
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
          ],
        },
        {
          items: [
            {
              label: "Instagram",              href: "#"},
            {
              label: "Twitter",              href: "#"},
          ],
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
