import type { Metadata } from "next";
import Header from "@/components/layout/header";
import Footer from "@/components/layout/footer";
import { ShopProviders } from "@/components/shop/shop-providers";

export const metadata: Metadata = {
    description:
        "Nizamify — smart home and business automation in Pakistan. Shop WiFi smart plugs, switches, and sensors with local delivery and cash on delivery.",
};

export default function MainLayout({
    children,
}: Readonly<{
    children: React.ReactNode;
}>) {
    return (
        <ShopProviders>
            <Header />
            <main className="min-h-[70vh] min-w-0 max-w-full overflow-x-clip">{children}</main>
            <Footer />
        </ShopProviders>
    );
}
