import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Home",    "href": "#hero"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Services",    "href": "#features"
  },
  {
    "name": "FAQ",    "href": "#faq"
  },
  {
    "name": "Specialties",    "href": "#specialties"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="Suraksha Hospital"
          logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=lmj5y4"
          ctaButton={{
            text: "Book Appointment",            href: "#contact"}}
          navItems={navItems}
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
          brand="Suraksha Hospital"
          columns={[
            {
              title: "Departments",              items: [
                {
                  label: "Cardiology",                  href: "#"},
                {
                  label: "Neurology",                  href: "#"},
                {
                  label: "Surgery",                  href: "#"},
              ],
            },
            {
              title: "About",              items: [
                {
                  label: "Careers",                  href: "#"},
                {
                  label: "Leadership",                  href: "#"},
                {
                  label: "Contact Us",                  href: "#"},
              ],
            },
            {
              title: "Legal",              items: [
                {
                  label: "Privacy Policy",                  href: "#"},
                {
                  label: "Terms of Use",                  href: "#"},
              ],
            },
          ]}
          copyright="© 2024 Suraksha Hospital. All rights reserved."
          links={[
            {
              label: "Instagram",              href: "#"},
            {
              label: "LinkedIn",              href: "#"},
          ]}
          imageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=lmj5y4"
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
