import { useQueryClient } from "@tanstack/react-query"; import { clearToken } from "../auth/token.ts"; import { withProject } from "../projects/current.ts"; import { ProjectPicker } from "../projects/ProjectPicker.tsx"; import { Menu, MenuItem, Segmented, ThemeSwitch } from "../ui/index.ts"; import { DataStatus } from "./DataStatus.tsx"; export type Section = "/board" | "/issues"; // верхняя панель (design.md, решение 9); section = null на путях вне разделов — активной ссылки нет (T5.1): название, проект, разделы, состояние данных, тема, меню «Ещё» export function AppBar({ section, project }: { section: Section | null; project: string | null }) { const qc = useQueryClient(); const href = (to: Section) => (project ? to + withProject("", project) : to); return (
Хаб Jira {(close) => { close(); clearToken(); qc.clear(); }}>Сменить токен}
); }