import React from 'react'; import { Link } from 'react-router-dom'; import { useAuth } from '@/contexts/AuthContext'; import { Button } from '@/components/ui/button'; import { ShieldCheck, LogOut, Terminal } from 'lucide-react'; const Header = () => { const { currentUser, isAuthenticated, connectWallet, disconnectWallet, verifyOrdinal } = useAuth(); const handleConnect = async () => { await connectWallet(); }; const handleDisconnect = () => { disconnectWallet(); }; const handleVerify = async () => { await verifyOrdinal(); }; return (
OpChan PoC v0.1
{!currentUser ? ( ) : ( <> {!isAuthenticated && ( )} {currentUser.address.slice(0, 6)}...{currentUser.address.slice(-4)} )}
); }; export default Header;