import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Início",
    "href": "#hero"
  },
  {
    "name": "O Serviço",
    "href": "#about"
  },
  {
    "name": "Diferenciais",
    "href": "#features"
  },
  {
    "name": "FAQ",
    "href": "#faq"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Testimonial",
    "href": "#testimonial"
  },
  {
    "name": "Contact",
    "href": "#contact"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="noise" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="PsicoPlantão 24h"
      ctaButton={{
        text: "Atendimento Emergencial",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="PsicoPlantão 24h"
      columns={[
        {
          title: "Serviços",
          items: [
            {
              label: "Plantão Emergencial",
              href: "#",
            },
            {
              label: "Triagem Psicológica",
              href: "#",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacidade",
              href: "#",
            },
            {
              label: "Termos de Uso",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 PsicoPlantão 24h. Todos os direitos reservados."
      links={[
        {
          label: "Instagram",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
