import { useState } from "react"; import SmokeBadge from "./SmokeBadge"; const SOURCES = [ { id: "hf", rank: "1", name: "Hugging Face GPU", note: "Pro free GPU ยท default", tag: "DEFAULT" }, { id: "cpu", rank: "2", name: "My CPU", note: "Local unused slot", tag: "CONFIRM" }, { id: "gcp", rank: "3", name: "Google Cloud GPU", note: "Last resort", tag: "CONFIRM" }, ]; export default function Header({ isDark, onToggleTheme, onToggleAdmin, }: { isDark: boolean; onToggleTheme: () => void; onToggleAdmin: () => void; }) { const [menuOpen, setMenuOpen] = useState(false); return (
HEY BIG PROPPA!
{menuOpen && (
COMPUTE PRIORITY
{SOURCES.map((s) => (
{s.rank} {s.name} {s.note} {s.tag}
))}
Check runs on query submit · 3 tries, 2/4/8s (adjustable)
)}
); } function squareBtn(): React.CSSProperties { return { width: 30, height: 30, display: "flex", alignItems: "center", justifyContent: "center", background: "var(--bp-card-bg)", border: "1px solid #241e2c", borderRadius: 8, color: "var(--bp-muted)", cursor: "pointer", padding: 0, fontSize: 13 }; }