import type { TaskSummary } from './taskSummary'; export type TaskSectionKey = 'assigned' | 'library' | 'collections' | 'emotions'; export type TaskSectionCount = { key: TaskSectionKey; count: number; }; export function buildTaskSectionCounts(summary: TaskSummary): TaskSectionCount[] { return [ { key: 'assigned', count: summary.assigned }, { key: 'library', count: summary.library }, { key: 'collections', count: summary.collections }, { key: 'emotions', count: summary.emotions }, ]; }