import { Plus, Settings } from './Icons'; import { STATUS_LABEL, type TaskSummary } from '../types'; function shortTime(value: string): string { const date = new Date(value.replace(' ', 'T')); if (Number.isNaN(date.getTime())) return value; const now = new Date(); const hm = date.toTimeString().slice(0, 5); return date.toDateString() === now.toDateString() ? hm : `${date.getMonth() + 1}/${date.getDate()} ${hm}`; } export function Sidebar({ tasks, activeId, backendLabel, backendOk, onSelect, onNew, onSettings }: { tasks: TaskSummary[]; activeId: string | null; backendLabel: string; backendOk: boolean; onSelect: (id: string) => void; onNew: () => void; onSettings: () => void; }) { return ( ); }