import { ShopView, type ShopParams } from "@/components/ShopView";
export const metadata = { title: "Shop All Products" };
export default async function Shop({ searchParams }: { searchParams: Promise<ShopParams> }) {
  const sp = await searchParams;
  const title = sp.offers ? "Special Offers" : sp.featured ? "Featured Products" : sp.best ? "Best Sellers" : "Shop All Products";
  return <ShopView sp={sp} title={title} />;
}
