import React from 'react' ; interface Props { title : string ; iframeSrc : string ; iframeSize : { width : string ; height : string ; } ; style ? : Record < string , unknown > ; } function param { string } title param { string } iframeSrc param { object } iframeSize param { Record < string , unknown > } style returns { JSX . Element } const Iframe = ( { title , iframeSrc , iframeSize , style , } ) : JSX . Element => { return ( < iframe src = { iframeSrc } title = { title } width = { iframeSize . width } height = { iframeSize . height } style = { style } / > ) ; } ; export default Iframe ;