import { Link } from "@tanstack/react-router" import { X } from "lucide-react" import { shortId } from "@/components/Runs/queries" import type { DataContext } from "./dataContext" /** * What this dashboard is being shown against, and the way back out. * * Above the canvas rather than on it: the widgets are the dashboard, and this * is a statement about the whole page. Written generically enough that a * replayed day says its own name here without a second bar. */ export function ContextBar({ context, members, onRemove, onExit, }: { context: DataContext /** One chip per member, by id. */ members: string[] onRemove: (id: string) => void onExit: () => void }) { return (
Showing {context.label} {context.pending ? "…" : ""} {members.length > 1 && members.map((id) => ( {shortId(id)} ))} {members.length > 1 && ( single readings come from {shortId(members[0])} )}
Runs
) }