import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Over Ons",
    "href": "#about"
  },
  {
    "name": "Diensten",
    "href": "#features"
  },
  {
    "name": "Contact",
    "href": "#contact"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="floatingGradient" heroBackground="cornerGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarDropdown
      logo="Intercash"
      ctaButton={{
        text: "Start Incasso",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="Intercash"
      columns={[
        {
          title: "Diensten",
          items: [
            {
              label: "Incasso",
              href: "#",
            },
            {
              label: "Advies",
              href: "#",
            },
          ],
        },
        {
          title: "Juridisch",
          items: [
            {
              label: "Privacy",
              href: "#",
            },
            {
              label: "Terms",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 Intercash Incassobureau. Alle rechten voorbehouden."
      links={[
        {
          label: "Home",
          href: "/",
        },
        {
          label: "Contact",
          href: "#contact",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
