import * as React from 'react' ; import styles from './Heading.styles' ; interface HeadingProps { text ? : string ; } const Heading = ( { text , children } ) => ( < h1 className = { styles . heading } > { children || text } < /h1>); export default Heading ;