import { NavLink } from 'react-router-dom' import type { Chain } from '@features/wallet' import { COIN_ICONS } from '@shared/assets/coins' import styles from './WalletChainTabs.module.css' interface TabItem { chain: Chain label: string icon: string } const TABS: TabItem[] = [ { chain: 'BTC', label: 'BTC', icon: COIN_ICONS.BTC }, { chain: 'ETH', label: 'ETH', icon: COIN_ICONS.ETH }, { chain: 'SOL', label: 'SOL', icon: COIN_ICONS.SOL }, { chain: 'TRX', label: 'TRX', icon: COIN_ICONS.TRX }, { chain: 'BSC', label: 'BSC', icon: COIN_ICONS.BNB }, ] const allCoinsIcon = ( ) export function WalletChainTabs() { return (
`${styles.tab} ${isActive ? styles.active : ''}`} > {allCoinsIcon} Все монеты {TABS.map((t) => ( `${styles.tab} ${isActive ? styles.active : ''}`} > {t.label} {t.label} ))}
) }