import styles from './index.module.scss'
import { useParams } from 'react-router-dom'

const Product = ({ name, price }) => {
    const { id } = useParams();
    return ( 
        <>
            <h2>Товар {id}. {name} по цене {price   }</h2>
        </>
    )
}
export default Product