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

23 lines
583 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?: {
type?: TabType
}
}
2025-03-14 12:40:51 +08:00
export default function ProductPage(props: ProductPageProps) {
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 defaultType={props.searchParams?.type ?? 'short'}/>
2025-03-14 12:40:51 +08:00
</Wrap>
</main>
)
}