import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarInline from '@/components/ui/NavbarInline';
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": "Recursos",
    "href": "#features"
  },
  {
    "name": "Planos",
    "href": "#pricing"
  },
  {
    "name": "Sobre",
    "href": "#about"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Product Grid",
    "href": "#product-grid"
  },
  {
    "name": "Team",
    "href": "#team"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="gridDots" heroBackground="cornerGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarInline
      logo="MedAngola"
      ctaButton={{
        text: "Agendar Demo",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="MedAngola"
      columns={[
        {
          title: "Produto",
          items: [
            {
              label: "Funcionalidades",
              href: "#features",
            },
            {
              label: "Preços",
              href: "#pricing",
            },
          ],
        },
        {
          title: "Empresa",
          items: [
            {
              label: "Sobre",
              href: "#about",
            },
            {
              label: "Carreiras",
              href: "#",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacidade",
              href: "#",
            },
            {
              label: "Termos",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 MedAngola SaaS. Todos os direitos reservados."
      links={[
        {
          label: "LinkedIn",
          href: "#",
        },
        {
          label: "Twitter",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
