'use client'; import { VStack, Text } from '@chakra-ui/react'; import { useWallet } from '@vechain/vechain-kit'; import { LuShield } from 'react-icons/lu'; import { CollapsibleCard } from '../../ui/CollapsibleCard'; export function ConnectionInfo() { const { connection } = useWallet(); const getConnectionDescription = () => { switch (connection.source.type) { case 'privy': return "You're connected using Privy authentication, which provides a dedicated user management system for this application."; case 'privy-cross-app': return "You're connected through the VeChain cross-app ecosystem, sharing authentication with other VeChain apps like Cleanify or Mugshot."; case 'wallet': return "You're connected directly through a Web3 wallet (VeWorld, Sync2, or WalletConnect)."; default: return 'Connection type not recognized.'; } }; return ( Type:{' '} {connection.source.type} Network:{' '} {connection.network} {getConnectionDescription()} ); }