import type { Metadata } from "next";
import { Storefront } from "@/components/storefront";
import { parseShopQuery } from "@/data/catalog";

export const metadata: Metadata = { title: "Shop the collection — Fashion Mart" };

export default async function ShopPage({ searchParams }: { searchParams: Promise<Record<string, string | string[] | undefined>> }) {
  const query = parseShopQuery(await searchParams);
  return <Storefront catalogQuery={query} />;
}
