import { Button, ButtonGroup, Typography } from '@mui/material'; import { Box } from '@mui/system'; import Image from 'next/image'; import PropType from 'prop-types'; import { useState } from 'react'; const ProductInfo = ({ data, bColor, addProductToCart, inCart }) => { const [quantity, setQuantity] = useState(1); return ( {data.name} reviews {data.description} ); }; ProductInfo.propTypes = { data: PropType.shape({ name: PropType.string, description: PropType.string, }), bColor: PropType.string, side: PropType.string, addProductToCart: PropType.func, inCart: PropType.bool, }; export default ProductInfo;