import { VALID_CR_VALUES } from "@initiative/domain"; const CR_LABELS: Record = { "0": "CR 0", "1/8": "CR 1/8", "1/4": "CR 1/4", "1/2": "CR 1/2", }; function formatCr(cr: string): string { return CR_LABELS[cr] ?? `CR ${cr}`; } export function CrPicker({ value, onChange, }: { value: string | null; onChange: (cr: string | undefined) => void; }) { return ( ); }