import { Badge, Box, Group, Stack, Text } from "@mantine/core"; import { Flame } from "lucide-react"; import { hazardClassLabel, type Freight } from "@edr/types"; /** * The contract's dangerous-goods declaration — the UN/ADR class and UN number * the customer declared alongside the hazard documents. Shown wherever a * hazardous contract is reviewed: the cargo-scope card and the two hazardous * approval confirmations, so no one signs off without seeing what is moving. */ export function HazardDeclarationPanel({ contract, }: { contract: Pick; }) { const classLabel = hazardClassLabel(contract.hazardClass); return ( Dangerous goods declaration {classLabel ?? "Class not declared"} {contract.unNumber ? `UN ${contract.unNumber}` : "UN number not declared"} Check the declaration against the uploaded hazard documents before approving. ); }