import { CustomPreference, defaultPreferences } from "~/lib/api/user"; import { OverlayTrigger, Tooltip } from "react-bootstrap"; import Icon from "~/components/KeyedIcon"; export default function StatusIcon({ preferences, status, }: { preferences: Record; status: string; }) { const mergedPrefs = Object.assign({}, defaultPreferences, preferences); const currentPref = status in mergedPrefs ? mergedPrefs[status] : defaultPreferences.missing; const id = crypto.randomUUID(); return ( <> {currentPref.tooltip} } > {currentPref.tooltip}: ); }