import { Space } from 'antd' import QR from 'components/qr' import Clipboard from 'components/clipboard' import NewWindow from 'components/newWindow' import { useWalletAddress } from 'hooks/useWallet' import { explorer } from 'shared/util' export type WalletActionType = 'copy' | 'qr' | 'explorer' export type WalletActionProps = { actions?: WalletActionType[] } const WalletAction = ({ actions = ['copy', 'qr', 'explorer'], }: WalletActionProps) => { const walletAddress = useWalletAddress() return ( {actions.map((action) => { if (action === 'copy') return if (action === 'qr') return if (action === 'explorer') return return null })} ) } export default WalletAction