import Layout from '@/components/layout' import { useWalletImage } from '@/wallets/client/hooks' import { walletDisplayName } from '@/wallets/lib/util' import Link from 'next/link' export function WalletLayout ({ children }) { // TODO(wallet-v2): py-5 doesn't work, I think it gets overriden by the layout class // so I still need to add it manually to the first child ... return ( {children} ) } export function WalletLayoutHeader ({ children }) { return (

{children}

) } export function WalletLayoutSubHeader ({ children }) { return (
{children}
) } export function WalletLayoutLink ({ children, href }) { return ( {children} ) } export function WalletLayoutImageOrName ({ name, maxHeight = '50px' }) { const img = useWalletImage(name) return (
{img ? ( {img.alt} ) : walletDisplayName(name)}
) }