import React , { FC } from 'react' ; import { FormattedMessage } from '@kbn/i18n-react' ; export const ExplorerNoInfluencersFound = ( { viewBySwimlaneFieldName , showFilterMessage = false } ) => showFilterMessage === false ? ( < FormattedMessage id = "xpack.ml.explorer.noInfluencersFoundTitle" defaultMessage = "No {viewBySwimlaneFieldName} influencers found" values = { { viewBySwimlaneFieldName } } />) : (<FormattedMessage id="xpack.ml.explorer.noInfluencersFoundTitleFilterMessage" defaultMessage="No {viewBySwimlaneFieldName} influencers found for specified filter" values={{ viewBySwimlaneFieldName }}/ > ) ;