import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Services",    "href": "#services"
  },
  {
    "name": "Reviews",    "href": "#reviews"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Faq",    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="default" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Presidential Dental"
      logoImageSrc="http://img.b2bpic.net/free-photo/businesswoman-holding-blank-business-card_1098-1026.jpg"
      ctaButton={{
        text: "Book Appointment",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
      brand="Presidential Dental Associates, 564 W Washington Blvd, Chicago, IL 60661"
      copyright="© 2024 Presidential Dental Associates. All rights reserved."
      socialLinks={[
        {
          icon: "Facebook",          href: "#"},
        {
          icon: "Instagram",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}