TrialLog.tsx 679 Bytes
Newer Older
1
2
import * as React from 'react';

3
4
5
6
7
8
interface TrialLogProps {
    logStr: string;
    logName: string;
}

const TrialLog = (props: TrialLogProps): any => {
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    const { logStr, logName } = props;
    const isHyperlink = logStr.toLowerCase().startsWith('http');

    return (
        <div className='logpath'>
            <span className='logName'>{logName}</span>
            {isHyperlink ? (
                <a className='link' rel='noopener noreferrer' href={logStr} target='_blank'>
                    {logStr}
                </a>
            ) : (
                <span className='fontColor333'>{logStr}</span>
            )}
        </div>
    );
};

export default TrialLog;