import { EuiButtonEmpty } from '@elastic/eui' ; import React , { FC } from 'react' ; import { FormattedMessage } from '@kbn/i18n-react' ; import { useMlLocator , useNavigateToPath } from '../../../contexts/kibana' ; import { ML_PAGES } from '../../../../../common/constants/locator' ; export const JobsActionMenu = ( ) => { const navigateToPath = useNavigateToPath ( ) ; const mlLocator = useMlLocator ( ) ; const onClick = async ( ) => { if ( ! mlLocator ) return ; const path = await mlLocator . getUrl ( { page : ML_PAGES . SETTINGS , } ) ; navigateToPath ( path ) ; } ; return ( < EuiButtonEmpty onClick = { onClick } iconType = "gear" > < FormattedMessage id = "xpack.ml.navMenu.settingsTabLinkText" defaultMessage = "Settings" / > < /EuiButtonEmpty>); } ;