import * as React from 'react' ; interface Props extends React . Props < any > { icon ? : string ; } export default class Callout extends React . Component < Props , { } > { public render ( ) { let icon = < span > < /span>; if ( this . props . icon ) { icon = < p > < img src = { 'images/' + this . props . icon + '_small.svg' } > < /img></p > ; } return ( < div className = "callout" > { icon } < div className = "text" > { this . props . children } < /div> < /div>); } }