import { useState } from "react"; import { useConsole } from "../context"; import { Card, Bar } from "../components/ui"; export default function AdminSection() { const ctx = useConsole(); const [setUser, setSetUser] = useState(""); const [setUsd, setSetUsd] = useState(""); return ( 管理区 (仅全局管理员)}>
{ctx.adminGate}
{ctx.adminBody ? ( <> ctx.setAdminUserId(e.target.value)} /> setSetUser(e.target.value)} /> setSetUsd(e.target.value)} />
{ctx.adminResult}
) : null}
); }