import { formatDecimal } from '../../../../../common/decimal'; import { decimal } from '../../../../../integrations/tbank/decimal'; import { type TbankMoney } from '../../../../../integrations/tbank/tbank.api'; export function money(value?: TbankMoney) { const currency = value?.currency?.toUpperCase(); return value && currency ? { currency, value: formatDecimal(decimal(value)) } : null; }