"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getPayButtonState(paymentMethod, topUpProviderSupportService, amount, topUpMethod) {
    if (topUpMethod !== 'fiat') {
        return 'hidden';
    }
    if (!paymentMethod) {
        return 'disabled';
    }
    var isPayButtonActive = Number(amount) > 0 || !topUpProviderSupportService.isInputAmountUsed(paymentMethod);
    return isPayButtonActive ? 'active' : 'disabled';
}
exports.getPayButtonState = getPayButtonState;
//# sourceMappingURL=getPayButtonState.js.map