'use client';
import { ThemeProvider } from 'next-themes';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCentered from '@/components/sections/hero/HeroCentered';
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" }
  ];

  return (
    <ThemeProvider
      attribute="class"
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <NavbarStyleCentered
        navItems={navItems}
        brandName="Webild"
        logoSrc="https://via.placeholder.com/40"
        button={{ text: "Continue Shopping", href: "/" }}
      />
      <main className="flex min-h-screen flex-col items-center justify-between">
        <HeroCentered
          id="order-confirmation"
          title="Order Confirmed!"
          description="Thank you for your purchase. Your order #ABC123DEF has been placed and is now being processed. A confirmation email with details has been sent to your inbox."
          background={{ variant: 'downward-rays-static' }}
          avatars={[{ src: 'https://via.placeholder.com/150', alt: 'Confirmed 1' }, { src: 'https://via.placeholder.com/150', alt: 'Confirmed 2' }]} 
          avatarText="You're all set!"
          buttons={[{ text: 'View Order Details', href: '/' }]} 
          buttonAnimation='slide-up'
        />
      </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>
  );
}
