import { useWallet } from '@razorlabs/razorkit'

export function useGoGoWallet() {
  const wallet = useWallet()
  
  return {
    // Wallet connection state
    connected: wallet.connected,
    connecting: wallet.connecting,
    
    // Wallet info
    account: wallet.account,
    name: wallet.name,
    
    // Connection methods
    select: wallet.select,
    disconnect: wallet.disconnect,
    
    // Transaction methods (simplified, no verification required)
    signAndSubmitTransaction: wallet.signAndSubmitTransaction,
    signMessage: wallet.signMessage,
    
    // Convenience getters
    address: wallet.account?.address,
    publicKey: wallet.account?.publicKey,
    
    // Status helpers
    isConnected: wallet.connected,
    isConnecting: wallet.connecting,
    
    // Available wallets
    configuredWallets: wallet.configuredWallets,
    detectedWallets: wallet.detectedWallets,
    
    // Network info (placeholder for now)
    network: { name: 'Movement Network' },
  }
}

export default useGoGoWallet