import React from 'react' ; import { StringOrNull } from '../../../..' ; interface Props { name : StringOrNull ; id : StringOrNull ; timerange : { from : number ; to : number ; } ; } export function HostLink ( { name , id , timerange } ) { const link = `../../app/metrics/link-to/host-detail/${ id }?from=${ timerange . from }&to=${ timerange . to }` ; return ( < > < a href = { link } > { name } < /a> < />); }