import React , { ReactNode } from 'react' ; import ImageModal from '../ImageModal' ; interface KitProps { name : string ; description ? : string ; imgUrl : string ; } function Kit ( props ) { const { name , description , imgUrl } = props ; return ( < div className = "kit container" > < div className = "kit__cover" > < ImageModal src = { imgUrl } /> < /div> < div className = "kit__info" > < h3 data - name = { name } className = "kit__info-name" > { name } < /h3> < p className = "kit__info-description" > { description } < /p> < /div> < /div>); } export default Kit ;