import { Theme, withTheme } from "@material-ui/core"; import { orange, red } from "@material-ui/core/colors"; import FiberManualRecordIcon from "@material-ui/icons/FiberManualRecord"; interface Props { status: number; theme: Theme; } function HttpStatusIcon({ status, theme }: Props): JSX.Element { const style = { marginTop: "-.25rem", verticalAlign: "middle" }; switch (Math.floor(status / 100)) { case 2: case 3: return ( ); case 4: return ( ); case 5: return ; default: return ; } } export default withTheme(HttpStatusIcon);