import Image from 'next/image'; import Link from 'next/link'; import { useNearWallet } from 'near-connect-hooks'; import NearLogo from '../../public/near-logo.svg'; export const Navigation = () => { const { signedAccountId, loading, signIn, signOut } = useNearWallet(); const handleAction = () => { if (signedAccountId) { signOut(); } else { signIn(); } }; const label = loading ? "Loading..." : signedAccountId ? `Logout ${signedAccountId}` : "Login"; return ( ); };