- {questions.length === 0 ? (
-
- No questions yet.{" "}
-
- Create some
-
-
- ) : filteredCategoryNames.length === 0 ? (
-
- No matches for "{searchQuery}"
-
- ) : (
- filteredCategoryNames.map((cat) => {
- const isCollapsed =
- collapsedCategories.has(cat);
- const qs = filteredGrouped[cat];
- const selectedInCat = qs.filter((q) =>
- selectedQuestions.includes(q.id),
- ).length;
- return (
-
-
+ )}
+