import * as React from 'react' ; export interface ITitleProps extends IElementProps { receiveTitle : ( title ? : string ) => void ; isModalActive : boolean ; } class Title extends React . Component < ITitleProps > { public componentDidMount ( ) { if ( ! this . props . isModalActive ) { this . props . receiveTitle ( this . props . attr . title ) ; } } public render ( ) { return null ; } } export default Title ;