@cranberry-money/shared-utils
Version:
Shared utility functions for Blueberry platform
21 lines • 632 B
JavaScript
const ASSET_TYPE_LABELS = {
native_crypto: 'Crypto',
stablecoin: 'Stablecoin',
tokenized_security: 'Tokenized Security',
tokenized_rwa: 'Real-World Asset',
synthetic: 'Synthetic',
};
export function getAssetType(asset) {
return ASSET_TYPE_LABELS[asset.assetType] || 'Synthetic';
}
export function getAssetTypeVariant(asset) {
const variants = {
native_crypto: 'success',
stablecoin: 'info',
tokenized_security: 'primary',
tokenized_rwa: 'warning',
synthetic: 'neutral',
};
return variants[asset.assetType] || 'neutral';
}
//# sourceMappingURL=assets.js.map