import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Shop",
    "href": "#trending"
  },
  {
    "name": "New",
    "href": "#new-arrivals"
  },
  {
    "name": "Categories",
    "href": "#categories"
  },
  {
    "name": "Support",
    "href": "#faq"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Best Sellers",
    "href": "#best-sellers"
  },
  {
    "name": "Limited Deals",
    "href": "#limited-deals"
  }
];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="gridLines" heroBackground="horizonGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="LUXOVO"
      ctaButton={{
        text: "Cart (0)",
        href: "#",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="LUXOVO"
      columns={[
        {
          title: "Company",
          items: [
            {
              label: "About",
              href: "#",
            },
            {
              label: "Blog",
              href: "#",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacy",
              href: "#",
            },
            {
              label: "Terms",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 LUXOVO. All rights reserved."
      links={[
        {
          label: "Newsletter",
          href: "#",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/top-view-shopping-bags-with-plant-copy-space-cyber-monday_23-2148657728.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
