import * as React from 'react'; interface LogpathChildProps { eachLogpath: string; logName: string; } class LogPathChild extends React.Component { constructor(props: LogpathChildProps) { super(props); } render(): React.ReactNode { const { eachLogpath, logName } = this.props; const isLink = /^http/gi.test(eachLogpath); return (
{logName} {isLink ? ( {eachLogpath} ) : ( {eachLogpath} )}
); } } export default LogPathChild;