import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "Home",
    "href": "#hero"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Menu",
    "href": "#menu"
  },
  {
    "name": "Reviews",
    "href": "#testimonials"
  },
  {
    "name": "Faq",
    "href": "#faq"
  },
  {
    "name": "Contact",
    "href": "#contact"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarDropdown
      logo="DENZEL DRIVEWAY"
      ctaButton={{
        text: "Call Now",
        href: "tel:0754801989",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="DENZEL DRIVEWAY"
      columns={[
        {
          title: "Menu",
          items: [
            {
              label: "Pizzas",
              href: "#menu",
            },
            {
              label: "Specials",
              href: "#menu",
            },
          ],
        },
        {
          title: "Contact",
          items: [
            {
              label: "Call Us",
              href: "tel:0754801989",
            },
            {
              label: "WhatsApp",
              href: "https://wa.me/255754801989",
            },
          ],
        },
      ]}
      copyright="© 2024 Denzel Driveway. All rights reserved."
      links={[
        {
          label: "Privacy Policy",
          href: "#",
        },
        {
          label: "Terms",
          href: "#",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/view-vegan-pizza-done-with-vegetables-by-bakery_23-2150195155.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
