mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
17 lines
434 B
TypeScript
17 lines
434 B
TypeScript
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={[]} />
|
|
)
|
|
}
|