import React from 'react' ; import { FormattedMessage } from '@kbn/i18n-react' ; import { EuiEmptyPrompt , EuiFlexGroup , EuiFlexItem , EuiPageContent , EuiSpacer } from '@elastic/eui' ; import { HelpMenu } from '../components/help_menu' ; import { useMlKibana } from '../contexts/kibana' ; export const Page = ( ) => { const { services : { docLinks } , } = useMlKibana ( ) ; const helpLink = docLinks . links . ml . guide ; return ( < > < EuiSpacer size = "xxl" / > < EuiFlexGroup justifyContent = "spaceAround" > < EuiFlexItem grow = { false } > < EuiPageContent verticalPosition = "center" horizontalPosition = "center" color = "danger" > < EuiEmptyPrompt iconType = "alert" title = { < h2 > < FormattedMessage id = "xpack.ml.management.jobsList.accessDeniedTitle" defaultMessage = "Access denied" / > < /h2>} body={<p> < FormattedMessage id = "xpack.ml.accessDenied.description" defaultMessage = "You don’t have permission to view the Machine Learning plugin. Access to the plugin requires the Machine Learning feature to be visible in this space." / > < /p>}/ > < /EuiPageContent> < /EuiFlexItem> < /EuiFlexGroup> < HelpMenu docLink = { helpLink } / > < />); } ;