import { EuiEmptyPrompt } from '@elastic/eui' ; import React from 'react' ; import { i18n } from '@kbn/i18n' ; export function PermissionDenied ( ) { return ( < EuiEmptyPrompt iconType = "securityApp" title = { < h2 > { i18n . translate ( 'xpack.apm.settings.agentKeys.noPermissionToManagelApiKeysTitle' , { defaultMessage : 'You need permission to manage API keys' , } ) } < /h2>} body={<p> { i18n . translate ( 'xpack.apm.settings.agentKeys.noPermissionToManagelApiKeysDescription' , { defaultMessage : 'Contact your system administrator' , } ) } < /p>}/ > ) ; }