"use client"
import { ProductBanner, Products } from "@/components/pages/products";
import { useSearchParams } from "next/navigation";

export default function Page() {
  const searchParams = useSearchParams()
  const category = searchParams.get("category");
  return (
    <div className="bg-[#1e1d1c] pb-30">
      <ProductBanner />
      <Products categoryName={category || null} />
    </div>
  );
}
