import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Shop",    "href": "#shop"
  },
  {
    "name": "Fishing Report",    "href": "#report"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Arrivals",    "href": "#arrivals"
  },
  {
    "name": "Brands",    "href": "#brands"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="gridDots" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Matos Marine"
      logoImageSrc="https://storage.googleapis.com/webild/users/user_3E7geerNBaObnLeEmBO57i03va7/uploaded-1782150212751-9h8hxd3z.jpg"
      ctaButton={{
        text: "WhatsApp Us",        href: "https://wa.me/17870000000"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="Matos Marine"
      columns={[
        {
          title: "Store",          items: [
            {
              label: "About Us",              href: "#"},
            {
              label: "Location",              href: "#"},
          ],
        },
        {
          title: "Shop",          items: [
            {
              label: "Browse",              href: "#shop"},
            {
              label: "Pickup Info",              href: "#pickup"},
          ],
        },
      ]}
      copyright="© 2024 Matos Marine Tackle Shop. All rights reserved."
      links={[
        {
          label: "Terms",          href: "#"},
        {
          label: "Privacy",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
