Files
web/src/app/(home)/product/page.tsx

23 lines
605 B
TypeScript
Raw Normal View History

2025-03-14 12:40:51 +08:00
import BreadCrumb from '@/components/bread-crumb'
import Wrap from '@/components/wrap'
import Purchase, {TabType} from '@/components/composites/purchase'
2025-03-14 12:40:51 +08:00
export type ProductPageProps = {
searchParams?: Promise<{
type?: TabType
}>
}
2025-03-14 12:40:51 +08:00
export default async function ProductPage(props: ProductPageProps) {
2025-03-14 12:40:51 +08:00
return (
<main className="mt-20">
<Wrap className="flex flex-col py-8 gap-4">
2025-03-14 12:40:51 +08:00
<BreadCrumb items={[
{label: '产品中心', href: '/product'},
]}/>
<Purchase defaultTab={(await props.searchParams)?.type ?? 'short'}/>
2025-03-14 12:40:51 +08:00
</Wrap>
</main>
)
}