"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrencyColor = void 0;
const defaultColor = "#999";
function getCurrencyColor(currency) {
    switch (currency.type) {
        case "CryptoCurrency":
            return currency.color ?? defaultColor;
        case "TokenCurrency":
            return currency?.parentCurrency?.color ?? defaultColor;
        default:
            return defaultColor;
    }
}
exports.getCurrencyColor = getCurrencyColor;
//# sourceMappingURL=color.js.map