import { StandardProps } from '../../common'; import { LogItemData } from '../useLogWatcher'; import classNames from 'classnames'; import ReactJson from 'react-json-view'; import './index.scss'; function ObjectView({ part }: { part: object }) { return ( ); } function StringView({ part }: { part: any }) { return {part + ''}; } function NotStringView({ part }: { part: any }) { return {part + ''}; } function LogPart({ part }: { part: any }) { return (
{typeof part === 'object' ? ( ) : typeof part === 'string' ? ( ) : ( )}
); } export function LogItem({ log, className, ...rest }: StandardProps & { log: LogItemData }) { return (
{log.message.map((part, index) => ( ))}
); }