import React from 'react'; import { Stack } from 'soapbox/components/ui'; import { useSoapboxConfig } from 'soapbox/hooks'; import CryptoAddress from './crypto-address'; interface ISiteWallet { limit?: number, } const SiteWallet: React.FC = ({ limit }): JSX.Element => { const { cryptoAddresses } = useSoapboxConfig(); const addresses = typeof limit === 'number' ? cryptoAddresses.take(limit) : cryptoAddresses; return ( {addresses.map(address => ( ))} ); }; export default SiteWallet;