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:'مجموعه‌ای انتخابی از دارایی‌های بازار پلانک، با لینک به جزئیات و معاملهٔ هر دارایی.',robots:{index:false,follow:true}};

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="public"/>;
}
