import PropTypes from 'prop-types'; import { BREAKPOINTS } from '../../../../../constants'; import { clsm } from '../../../../../utils'; import { useResponsiveDevice } from '../../../../../contexts/ResponsiveDevice'; import ProductButtons from './ProductButtons'; import ProductCardImage from './ProductCardImage'; const ProductDescription = ({ color, title, description, price, imageUrl }) => { const { currentBreakpoint } = useResponsiveDevice(); const isSmallBreakpoint = currentBreakpoint <= BREAKPOINTS.sm; const customProductImageClasses = [ 'w-[320px]', 'h-[320px]', 'md:w-full', 'md:max-w-none', 'md:h-[calc(100vw_-_32px)]' ]; return (

{title}

{description}

{!isSmallBreakpoint && ( )}
); }; ProductDescription.defaultProps = { color: 'default', imageUrl: '', price: '' }; ProductDescription.propTypes = { color: PropTypes.string, description: PropTypes.string.isRequired, imageUrl: PropTypes.string, price: PropTypes.string, title: PropTypes.string.isRequired }; export default ProductDescription;