import { KeyRound, CheckCircle2, XCircle, Menu } from "lucide-react"; import { useApiKey } from "../context/ApiKeyContext"; import { Link } from "react-router-dom"; export default function TopBar({ onMenuClick }: { onMenuClick?: () => void }) { const { apiKeys, activeKeyId, setActiveKeyId, activeKey } = useApiKey(); return (
{onMenuClick && ( )}
{activeKey ? (
API Connected
) : (
API Key Missing
)}
{apiKeys.length === 0 && ( Add Key )}
); }