import cn from 'classnames'; import { Icon } from 'UI'; import cls from './Log.css'; function getIconProps(level) { switch (level) { case "info": return { name: 'console/info', color: 'blue2', }; case "warn": return { name: 'console/warning', color: 'red2', }; case "error": return { name: 'console/error', color: 'red', }; } return null; }; function renderWithNL(s = '') { if (typeof s !== 'string') return ''; return s.split('\n').map((line, i) =>