import React from "react"; import { RiArrowDownSLine, RiArrowUpDoubleLine, RiArrowUpSLine, RiCheckboxCircleLine, RiCloseCircleLine, RiRecordCircleLine, RiTimeLine, } from "@remixicon/react"; import { cn } from "@/lib/utils"; import { useTodoStore, type TodoItem, type TodoPriority, type TodoStatus } from "@/stores/useTodoStore"; import { useSessionStore } from "@/stores/useSessionStore"; import { useUIStore } from "@/stores/useUIStore"; import { WorkingPlaceholder } from "./message/parts/WorkingPlaceholder"; import { isVSCodeRuntime } from "@/lib/desktop"; const statusConfig: Record = { in_progress: { textClassName: "text-foreground", }, pending: { textClassName: "text-foreground", }, completed: { textClassName: "text-muted-foreground line-through", }, cancelled: { textClassName: "text-muted-foreground line-through", }, }; const priorityClassName: Record = { high: "text-[var(--status-warning)]", medium: "text-muted-foreground", low: "text-muted-foreground/70", }; const priorityIcon: Record = { high: