import { MessageBar } from 'office-ui-fabric-react/lib/MessageBar' ; import * as React from 'react' ; import { IShowMessageProps } from './IShowMessageProps' ; export const ShowMessage = ( props ) => { if ( props . isShow ) { return ( < > < MessageBar { ... props } > { props . message } < /MessageBar> < />); } return null ; } ;