'use client';
import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitDoubleCarousel from '@/components/sections/hero/HeroSplitDoubleCarousel';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';

export default function OrderConfirmationPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Cart", id: "/cart" },
    { name: "Checkout", id: "/checkout" },
    { name: "Order Conf", id: "/order-confirmation" },
    { name: "Products", id: "/products/1" },
    { name: "Collections", id: "/collections/all" }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered navItems={navItems} brandName="Webild" logoSrc="https://via.placeholder.com/40" />
      </div>
      <main className="flex min-h-screen flex-col items-center justify-between p-24">
        <div id="order-confirmation-hero-section" data-section="order-confirmation-hero-section">
          <HeroSplitDoubleCarousel
            title="Thank You for Your Order!"
            description="Your order has been successfully placed and will be processed shortly. A confirmation email has been sent."
            background={{ variant: "downward-rays-static" }}
            avatars={[{ src: "https://via.placeholder.com/150", alt: "Happy Customer 1" }, { src: "https://via.placeholder.com/150", alt: "Happy Customer 2" }]}
            avatarText="Join our community of satisfied customers!"
            buttons={[{ text: "Continue Shopping", href: "/collections/all" }]}
            buttonAnimation="slide-up"
            leftCarouselItems={[{ imageSrc: "https://via.placeholder.com/400x300?text=Product+A", imageAlt: "Product A" }]}
            rightCarouselItems={[{ imageSrc: "https://via.placeholder.com/400x300?text=Product+B", imageAlt: "Product B" }]}
          />
        </div>
      </main>
      <FooterBaseReveal
        logoText="Webild"
        columns={[
          {
            title: "Company",            items: [
              { label: "About Us", href: "/" },
              { label: "Contact", href: "/" }
            ]
          },
          {
            title: "Legal",            items: [
              { label: "Privacy Policy", href: "/" },
              { label: "Terms of Service", href: "/" }
            ]
          }
        ]}
        copyrightText="© 2023 Webild. All rights reserved."
      />
    </ThemeProvider>
  );
}
