// The currencies the booth can price in (ISO 4217). Money is always stored as // integer minor units + one of these codes; the UI offers a closed select rather // than free text so a typo can never publish an unknown currency. export const CURRENCIES = ["ALL", "EUR", "USD"] as const; /** The select options: the known set, plus the current value when it's some * historical code outside it (so an old record still displays + round-trips). */ export function currencyOptions(current: string): string[] { const cur = current.trim().toUpperCase(); return cur && !CURRENCIES.includes(cur as (typeof CURRENCIES)[number]) ? [...CURRENCIES, cur] : [...CURRENCIES]; }