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": "Начало",
    "href": "#hero"
  },
  {
    "name": "Услуги",
    "href": "#services"
  },
  {
    "name": "Галерия",
    "href": "#gallery"
  },
  {
    "name": "Отзиви",
    "href": "#testimonials"
  },
  {
    "name": "Контакти",
    "href": "#contact"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Why Raw",
    "href": "#why-raw"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarInline
      logo="RAW BARBERS"
      ctaButton={{
        text: "Запази час",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="RAW BARBERS"
      columns={[
        {
          title: "Локация",
          items: [
            {
              label: "Малинова долина, ул. Едуард Генов 24",
              href: "#",
            },
          ],
        },
        {
          title: "Работно време",
          items: [
            {
              label: "Пон-Нед: 10:00 – 20:00",
              href: "#",
            },
          ],
        },
        {
          title: "Социални",
          items: [
            {
              label: "Instagram",
              href: "#",
            },
            {
              label: "Facebook",
              href: "#",
            },
            {
              label: "TikTok",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2026 RAW BARBERS. Истински стил. Истински хора."
      links={[
        {
          label: "Политика за поверителност",
          href: "#",
        },
        {
          label: "Термини и условия",
          href: "#",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/close-up-view-man-barbershop_23-2148506245.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
