import * as React from 'react'; interface TrialIdColumnProps { port: number; id: string; status: string; } class TrialIdColumn extends React.Component { constructor(props: TrialIdColumnProps) { super(props); } render(): React.ReactNode { const { port, id, status } = this.props; const hostname = window.location.hostname; const protocol = window.location.protocol; const webuiPortal = `${protocol}//${hostname}:${port}/oview`; return (
{status === 'STOPPED' ? (
{id}
) : ( {id} )}
); } } export default TrialIdColumn;