+ {/* Search and Filter Bar */}
+
+ {/* Search Input */}
+
+
+ setSearchText(e.target.value)}
+ className="pl-9 pr-9"
+ />
+ {searchText && (
+
+ )}
+
+
+ {/* Filter Dropdown */}
+
+
+
+
+
+ Status
+ {STATUS_OPTIONS.map(status => (
+ toggleStatus(status.value)}
+ >
+ {status.label}
+
+ ))}
+
+ Priority
+ {PRIORITY_OPTIONS.map(priority => (
+ togglePriority(priority.value)}
+ >
+ {priority.label}
+
+ ))}
+
+
+
+
+ {/* Task List or No Results Message */}
+ {filteredTasks.length > 0 ? (
+
+ ) : (
+
+
+ No tasks match the current search and filter criteria.
+
+
+ )}
+
+ )
+}