import { Link, NavLink, useLocation } from "react-router-dom";
import { Activity, FlaskConical, BookOpen, Play, Github } from "lucide-react";
export default function TopBar() {
const { pathname } = useLocation();
const inAnalysis = pathname.startsWith("/run/");
return (
NeuroScope
v1.0 · gpt2-small
{inAnalysis ? (
ANALYSIS · GPT-2 SMALL (12 LAYERS, 768 d_model) · SAE
gpt2-small-res-jb — read-only research view
) : null}
);
}
function NavTab({ to, icon: Icon, label, testid }) {
return (
`flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs ${
isActive
? "bg-[color:var(--ns-bg-surface-2)] text-[color:var(--ns-fg-primary)]"
: "text-[color:var(--ns-fg-muted)] hover:bg-[color:var(--ns-bg-surface-2)] hover:text-[color:var(--ns-fg-primary)]"
}`
}
>
{label}
);
}