import { AanvraagStatus } from './aanvraag'; /** What a dashboard "Mijn aanvragen" block offers per status. The badge itself follows directly from `status.tag` (the UI maps tag → colour + label), so this pure function owns only the *actions* decision. */ export type BlockAction = 'resume' | 'cancel' | 'viewDocuments'; export function blockActions(status: AanvraagStatus): BlockAction[] { switch (status.tag) { case 'Concept': return ['resume', 'cancel']; case 'InBehandeling': return ['viewDocuments']; case 'Goedgekeurd': case 'Afgewezen': return []; } }