{sidebarContent === "sources" ? ( // If the sidebar content is "sources", show the sources component
sourcesLoading ? (
Generating sources...
) : (
)
)
// If the sidebar content is "evaluate", show the evaluation component
: sidebarContent === "evaluate" ? (
) : (
// Otherwise, show tasks
tasksLoading ? (
Generating tasks...
) : (
{tasks.map((task, index) => (
-
{getTaskIcon(task)}
{typeof task === 'string' ? task : task.task}
))}
)
)}