import { cloneElement } from "react" ; type Props = { image : JSX . Element ; title ? : string ; } ; const SvgImage = ( { image , title = "" } ) => { return cloneElement ( image , { ... image . props , title , } ) ; } ; export default SvgImage ;