import React , { ReactNode } from 'react' ; import ImageModal from '../ImageModal' ; interface Renders { renders : string [ ] ; } function Renders ( props ) { const { renders } = props ; return ( < div className = "renders" > { renders . map ( ( render , idx ) => ( < ImageModal src = { render } key = { render + idx } / > ) ) } < /div>); } export default Renders ;