16 lines
838 B
TypeScript
16 lines
838 B
TypeScript
import { DataStatus } from "./DataStatus.tsx";
|
|
import { useJiraRefresh } from "./refresh.ts";
|
|
import { refreshText } from "./refreshStatus.ts";
|
|
|
|
// плашка данных и кнопка «Обновить из Jira» в боковой панели
|
|
export function SidebarStatus({ project, compact }: { project: string | null; compact: boolean }) {
|
|
return <DataStatus project={project} compact={compact} />;
|
|
}
|
|
|
|
// I-1: на телефоне подсказок нет — событие пакета строкой под верхней панелью
|
|
export function TopbarNotice() {
|
|
const refresh = useJiraRefresh();
|
|
const rt = refresh.event ? refreshText(refresh.event) : null;
|
|
return rt ? <div className={`topbar-event data-status__event--${rt.tone}`} data-testid="topbar-event" aria-hidden="true">{rt.text}</div> : null;
|
|
}
|