mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 04:14:18 +00:00
24 lines
641 B
TypeScript
24 lines
641 B
TypeScript
import React from 'react'
|
|
import { ProductCardProps } from '../ProductCard/ProductCard'
|
|
import RecipeDetailInfo from './components/RecipeDetailInfo/RecipeDetailInfo'
|
|
import RecipeIngredient from './components/RecipeIngredient/RecipeIngredient'
|
|
import s from './RecipeDetail.module.scss'
|
|
|
|
|
|
interface Props {
|
|
className?: string
|
|
children?: any,
|
|
ingredients: ProductCardProps[],
|
|
}
|
|
|
|
const RecipeDetail = ({ ingredients }: Props) => {
|
|
return (
|
|
<section className={s.recipeDetail}>
|
|
<RecipeDetailInfo />
|
|
<RecipeIngredient data={ingredients} />
|
|
</section >
|
|
)
|
|
}
|
|
|
|
export default RecipeDetail
|