import { MlPluginStart } from '../index' ; import { MlLocatorParams } from '../../common/types/locator' ; /**
 * Provides a URL to ML plugin page
 * TODO remove basePath parameter
 */ export const useMlHref = ( ml , basePath , params ) => { return ml && ml . locator ? ml . locator ! . useUrl ( params ) : basePath !== undefined ? `${ basePath }/app/ml/${ params . page }` : '' ; } ;