import FooterBasic from '@/components/sections/footer/FooterBasic';
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": "Home",
    "href": "#"
  },
  {
    "name": "Products",
    "href": "#products"
  },
  {
    "name": "Gallery",
    "href": "#gallery"
  },
  {
    "name": "Contact",
    "href": "#contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Features",
    "href": "#features"
  }
];

  return (
    <StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Croch-Slay"
      ctaButton={{
        text: "Shop Now",
        href: "#products",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Shop",
          items: [
            {
              label: "New Arrivals",
              href: "#",
            },
            {
              label: "All Products",
              href: "#products",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "Shipping Info",
              href: "#",
            },
            {
              label: "Custom Orders",
              href: "#",
            },
          ],
        },
      ]}
      leftText="© 2026 Croch-Slay"
      rightText="Made with 🩷 & Yarn"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
