import React from 'react'; import { useWeb3 } from '../../context/Web3Context'; import { DEPLOYMENTS } from '@wtfx/contracts'; import { Wallet, ShieldAlert, CheckCircle2 } from 'lucide-react'; interface NavbarProps { activeTab: string; setActiveTab: (tab: string) => void; } export const AdminNavbar: React.FC = ({ activeTab, setActiveTab }) => { const { account, isCorrectNetwork, connectWallet, switchNetwork } = useWeb3(); const navItems = [ { id: 'governance', label: '⚙️ 协议全局治理' }, { id: 'adjudication', label: '⚖️ 市场争议终裁与熔断' }, { id: 'faucet', label: '🚰 超管铸币水龙头' }, ]; return (
W
WTFX ADMIN CONSOLE
{account ? (
{!isCorrectNetwork ? ( ) : ( Robinhood 46630 )}
{account.slice(0, 6)}...{account.slice(-4)}
) : ( )}
); };