import React from 'react' ; import { Section } from '../../../types/types' ; interface ImgTextSectionProps { section : Section ; } function ImgTextSection ( props ) { const { section } = props ; return ( < section className = "section set-img-text" > < div > < h2 className = "title center" > { section . title } < /h2> < p className = "small light" dangerouslySetInnerHTML = { { __html : section . text } } > < /p> < /div> < div > < img src = { section . imgUrl } alt = "Sketch of the Pneuma keyboard..." / > < /div> < /section>); } export default ImgTextSection ;