@bgd-labs/react-web3-icons
Version:
Svg set of web3 icons.
68 lines (57 loc) • 2.71 kB
TypeScript
export { f as formatMonoSvgCode } from '../formatMonoSvgCode-DHGa4vYL.js';
import { a as IconComponentProps } from '../types-D0Zf67IJ.js';
export { B as BaseIconComponentProps, I as IconComponentBaseProps, b as IconVariant } from '../types-D0Zf67IJ.js';
import 'react';
declare const capitalize: (word: string) => string;
/**
* Removes the marketPrefix from a symbol
* @param symbol
* @param prefix
*/
declare function unPrefixSymbol(symbol: string, prefix: string): string;
/**
* Format symbol for get icon
* @param symbol
* @param marketPrefix
* @param symbolsMap
*/
declare function formatSymbolForIcon({ symbol, marketPrefix, symbolsMap, }: {
symbol: string;
marketPrefix?: string;
symbolsMap?: Record<string, string>;
}): string | {
iconSymbol: string;
symbol: string;
tokenTag: string;
};
declare const getHumanReadableAssetSymbol: (symbol: string) => string;
declare const getAssetName: ({ symbol, formatSymbol, }: Pick<IconComponentProps, "symbol" | "assetTag" | "formatSymbol" | "mono">) => string;
declare const getAssetIconNameAndPath: ({ symbol, assetTag, formatSymbol, mono, }: Pick<IconComponentProps, "symbol" | "assetTag" | "formatSymbol" | "mono">) => {
iconPathToRepo: string;
iconKey: string;
};
declare const getBrandName: (key: string) => string;
declare const getBrandIconNameAndPath: ({ brandKey, mono, }: Pick<IconComponentProps, "brandKey" | "mono">) => {
iconPathToRepo: string;
iconKey: string;
};
declare const getChainName: (chainId: number | string) => string;
declare const getChainIconNameAndPath: ({ chainId, mono, }: Pick<IconComponentProps, "chainId" | "mono">) => {
iconPathToRepo: string;
iconKey: string;
};
declare const getIconData: ({ symbol, chainId, walletKey, brandKey, assetTag, formatSymbol, mono, }: Pick<IconComponentProps, "symbol" | "chainId" | "walletKey" | "brandKey" | "assetTag" | "formatSymbol" | "mono">) => {
iconPathToRepo: string;
iconKey: string;
};
declare const getWalletName: (iconKey: string) => string;
declare const getWalletIconNameAndPath: ({ walletKey, mono, }: Pick<IconComponentProps, "walletKey" | "mono">) => {
iconPathToRepo: string;
iconKey: string;
};
/**
* Function for getting installed browser wallet name.
*/
declare const getWeb3WalletName: () => string;
declare const symbolToComponentName: (symbol: string) => string;
export { IconComponentProps, capitalize, formatSymbolForIcon, getAssetIconNameAndPath, getAssetName, getBrandIconNameAndPath, getBrandName, getChainIconNameAndPath, getChainName, getHumanReadableAssetSymbol, getIconData, getWalletIconNameAndPath, getWalletName, getWeb3WalletName, symbolToComponentName, unPrefixSymbol };