+ {tasks && tasks.length > 0 ? (
+ tasks.map((task) => (
+
handleDragStart(e, task, title)}
+ onClick={() => handleClick(task.id)}
+ >
+ 0
+ ? task.labels.map((label) => label.color)
+ : []
+ }
+ title={task.title}
+ dueDate={task.dueDate ? new Date(task.dueDate) : undefined}
+ category={task.category}
+ />
+
+ ))
+ ) : (
+
There are no current tasks.
+ )}
+