import { useShallow } from "zustand/react/shallow"; import { useAppState } from "../../store/appState"; export default function StatusBar() { const { projects, sessions, terminalHasSelection } = useAppState( useShallow(s => ({ projects: s.projects, sessions: s.sessions, terminalHasSelection: s.terminalHasSelection })) ); const running = projects.filter((p) => p.status === "running").length; return (
{projects.length} project{projects.length !== 1 ? "s" : ""} | {running} running | {sessions.length} terminal{sessions.length !== 1 ? "s" : ""} {terminalHasSelection && ( <> | Ctrl+Shift+C: copy trimmed · Ctrl+Shift+Alt+C: copy raw )}
); }