export const dynamic='force-dynamic';
import {getCatalog} from '@/lib/server';
import {parseStorefrontConfig} from '@/lib/storefront';
import {StorefrontPage} from '@/components/storefront-page';

export const metadata={title:'ساخت ویترین دارایی | پلانک',description:'ویترین شخصی خود را با انتخاب دارایی‌های بازار بسازید و لینک آن را به اشتراک بگذارید.'};

export default async function Page({searchParams}:{searchParams:Promise<Record<string,string|string[]|undefined>>}) {
 const parsed=parseStorefrontConfig(await searchParams);
 return <StorefrontPage catalog={await getCatalog()} config={parsed.config} mode="create"/>;
}
