/** * Icons that go next to a log-type (e.g., warning triangle, error x, info i). Allows user to quickly go "Oh there's a lot of errors here.."). */ import React from "react"; interface StyleIconProps { title: string; } export class ErrorIcon extends React.PureComponent { constructor(props: StyleIconProps) { super(props); } render() { return ( ); } } export class InfoIcon extends React.PureComponent { constructor(props: StyleIconProps) { super(props); } render() { return ( ); } } export class WarnIcon extends React.PureComponent { constructor(props: StyleIconProps) { super(props); } render() { return ( ); } } export class NoIcon extends React.PureComponent { constructor(props: StyleIconProps) { super(props); } render() { return ( ); } } export const IconMap = { Error: ErrorIcon, Warn: WarnIcon, Info: InfoIcon, Debug: NoIcon, Log: NoIcon, Verbose: NoIcon, };