import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Home",
    "href": "#hero"
  },
  {
    "name": "Services",
    "href": "#services"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Packages",
    "href": "#packages"
  },
  {
    "name": "Gallery",
    "href": "#gallery"
  },
  {
    "name": "Reviews",
    "href": "#reviews"
  },
  {
    "name": "Contact",
    "href": "#contact"
  }
];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarInline
      logo="Shree Mahakali Travels"
      ctaButton={{
        text: "WhatsApp",
        href: "https://wa.me/919286807674",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="Shree Mahakali Travels"
      columns={[
        {
          title: "Company",
          items: [
            {
              label: "About Us",
            },
            {
              label: "Services",
            },
            {
              label: "Contact",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "Privacy Policy",
            },
            {
              label: "Terms of Service",
            },
            {
              label: "FAQs",
            },
          ],
        },
      ]}
      copyright="© 2024 Shree Mahakali Travels. All rights reserved."
      links={[
        {
          label: "WhatsApp: +91 9286807674",
          href: "https://wa.me/919286807674",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/landscape-sky-is-reflected-sea-setting-light-city-coastline-with-mountains-horizon_169016-9946.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
