export const validateAmountCurrency = ({ type, units }) => (value) => {
    if (!value)
        return true;
    if (typeof value === 'object' && 'unit' in value) {
        if (['AmountFiat', 'AmountCrypto', 'AmountCurrency', 'Amount'].includes(type)) {
            if (!units?.some((currency) => currency.ticker === value.unit)) {
                return 'Please select a valid currency';
            }
        }
    }
    return true;
};
//# sourceMappingURL=amount-currency-validations.js.map