(sectionId: string)
| 345 | }; |
| 346 | |
| 347 | const toggleSection = (sectionId: string) => { |
| 348 | setExpandedSections((prev) => { |
| 349 | const newSet = new Set(prev); |
| 350 | if (newSet.has(sectionId)) { |
| 351 | newSet.delete(sectionId); |
| 352 | } else { |
| 353 | newSet.add(sectionId); |
| 354 | } |
| 355 | return newSet; |
| 356 | }); |
| 357 | }; |
| 358 | |
| 359 | const toggleMainCategory = (categoryId: string) => { |
| 360 | setExpandedMainCategories((prev) => { |
no test coverage detected