/** Wallet type code -> i18n code for wallet labels (member pages and the POS split step). */ export const WALLET_TYPE_LABEL: Record = { PRODUCT: "WalletProduct", ACORN: "WalletAcorns", APPLE: "WalletApples", GIFT: "WalletGift", }; /** The i18n code for a wallet type, or the raw wallet type code when it is unknown. */ export function walletLabelCode(walletTypeCode: string): string { return WALLET_TYPE_LABEL[walletTypeCode] ?? walletTypeCode; }