import React from 'react' ; import { EuiLink } from '@elastic/eui' ; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context' ; interface Props { label : string ; } export function Documentation ( { label } ) { const { docLinks } = useApmPluginContext ( ) . core ; return < EuiLink href = { docLinks . links . apm . customLinks } > { label } < /EuiLink>; }