import { Badge, Box, Icon, Stack, Text } from '@chakra-ui/react'; import { WorkingProgressStatus } from '@generated/types'; import { assertUnreachable, toBgColorByProgressStatus, toWorkingProgressStatusLabel } from '../helpers'; export function WorkingProgressStatusBadge({ progressStatus }: { progressStatus: WorkingProgressStatus; }) { return ( {toWorkingProgressStatusLabel(progressStatus)} ); } function toWorkingProgressStatusIcon(value: WorkingProgressStatus): string { if (value === WorkingProgressStatus.InProgress) return 'nf nf-fa-clock'; if (value === WorkingProgressStatus.Frozen) return 'nf nf-fa-snowflake'; if (value === WorkingProgressStatus.Finished) return 'nf nf-fa-circle_check'; assertUnreachable(value); }