import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "#"
  },
  {
    "name": "Υπηρεσίες",
    "href": "#services"
  },
  {
    "name": "Γιατί εμάς",
    "href": "#features"
  },
  {
    "name": "Επικοινωνία",
    "href": "#contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Gallery",
    "href": "#gallery"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="stagger" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarDropdown
      logo="Γεώργιος Βουτυράκης"
      ctaButton={{
        text: "Καλέστε Τώρα",
        href: "tel:+302100000000",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Υπηρεσίες",
          items: [
            {
              label: "Επισκευές",
              href: "#services",
            },
            {
              label: "Αποφράξεις",
              href: "#services",
            },
            {
              label: "Θερμοσίφωνες",
              href: "#services",
            },
          ],
        },
        {
          title: "Εταιρεία",
          items: [
            {
              label: "Σχετικά με εμάς",
              href: "#features",
            },
            {
              label: "Αξιολογήσεις",
              href: "#testimonials",
            },
            {
              label: "Επικοινωνία",
              href: "#contact",
            },
          ],
        },
      ]}
      leftText="© 2024 Γεώργιος Βουτυράκης. Όλα τα δικαιώματα διατηρούνται."
      rightText="Υδραυλικές εργασίες στην Αθήνα."
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
