import React, { useEffect } from 'react'; import { EmptyTrackProps } from './types'; const EmptyTrack: React.FC = props => { useEffect(() => { props.onHeightChanged && props.onHeightChanged(props.height); }, [ props.height ]); return ( {props.height!=0 && } {props.text && props.height!=0 && {props.text}} ); }; export default EmptyTrack;