import { Stack, Typography } from "@mui/material"; import { getAreaForState, normalizeStateCode } from "@/data/areas"; /** State abbreviation with the derived area as secondary text. */ export function StateAreaCell({ state }: { state?: string | null }) { const code = normalizeStateCode(state); const area = code === null ? null : getAreaForState(code); if (code === null) { return ( {state?.trim() || "—"} ); } return ( {code} {area !== null && ( {area} )} ); }