(projectId: string)
| 24 | }, [activeProjectId]); |
| 25 | |
| 26 | const toggleProject = (projectId: string) => { |
| 27 | setExpandedProjects((prev) => { |
| 28 | const next = new Set(prev); |
| 29 | if (next.has(projectId)) { |
| 30 | next.delete(projectId); |
| 31 | } else { |
| 32 | next.add(projectId); |
| 33 | } |
| 34 | return next; |
| 35 | }); |
| 36 | }; |
| 37 | |
| 38 | const handleNewSession = async (e: React.MouseEvent, projectId: string) => { |
| 39 | e.stopPropagation(); |