Files
gruperly/apps/web/src/features/groups/constants.ts
2026-11-03 12:25:21 -03:00

11 lines
573 B
TypeScript

import type { GroupRiskLevel } from '@gruperly/shared'
/* Copy: `groups:risk.HIGH` / `groups:risk.MEDIUM`. The badge only says "Riesgo
moderado"; `groups:risk.hint` explains what it is about (an attendee dropping
out, not fraud or collections) and lives in the tooltip. */
export type VisibleRiskLevel = Exclude<GroupRiskLevel, 'NONE'>
/* The concrete reason ("4 members with consecutive absences") is not computed
here anymore: it lives in `card.ts`, which also decides the badge's visual
weight. What is left here is the static copy of the group detail. */