import {Incident} from "../nws-api/types"; import ReactTooltip from "react-tooltip"; import React from "react"; export default function IncidentCard(props: {incident: Incident}) { const severityText: string[] = [ "Low Severity means that this issue does not affect any services running on NWS.", "Medium Severity means that this issue may cause some slowdowns or outages on some services.", "High Severity means that this issue causes an outage on the entire NWS network or most of the services running on it." ]; let severityClass: string = props.incident.severity == 0 ? 'low' : (props.incident.severity == 1 ? 'med' : 'high'); let severityString: string = props.incident.severity == 0 ? 'Low' : (props.incident.severity == 1 ? 'Medium' : 'High'); return (

{props.incident.title}

{severityString} Severity ⓘ

{props.incident.description}

); }