const defaultColor = "#999";
export function getCurrencyColor(currency) {
    switch (currency.type) {
        case "CryptoCurrency":
            return currency.color ?? defaultColor;
        case "TokenCurrency":
            return currency?.parentCurrency?.color ?? defaultColor;
        default:
            return defaultColor;
    }
}
//# sourceMappingURL=color.js.map