mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Ported more functionality
This commit is contained in:
16
app/[locale]/[[...slug]]/product-page.tsx
Normal file
16
app/[locale]/[[...slug]]/product-page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import ProductView from "components/product/product-view";
|
||||
|
||||
interface ProductPageProps {
|
||||
data: object | any
|
||||
}
|
||||
|
||||
// This is a Client Component. It receives data as props and
|
||||
// has access to state and effects just like Page components
|
||||
// in the `pages` directory.
|
||||
export default function ProductPage({data }: ProductPageProps) {
|
||||
const { product } = data;
|
||||
|
||||
return (
|
||||
<ProductView product={product} relatedProducts={[]} />
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user