import { EuiLink } from '@elastic/eui' ; import React from 'react' ; import { useMlManageJobsHref } from '../../../../hooks/use_ml_manage_jobs_href' ; interface Props { children ? : React . ReactNode ; external ? : boolean ; jobId ? : string ; } export function MLManageJobsLink ( { children , external , jobId } ) { const mlADLink = useMlManageJobsHref ( { jobId , } ) ; return ( < EuiLink children = { children } href = { mlADLink } external = { external } target = { external ? '_blank' : undefined } / > ) ; }