// components/TaskTroveSection.js import React from 'react'; import { Box, Text } from 'ink'; function renderTaskTroveList(tasks) { if (!tasks) { return Chargement des tâches...; } if (tasks.length === 0) { return Aucune tâche à afficher.; } return ( {tasks.map((task, index) => { const color = task.priority === 1 ? 'red' : task.priority === 2 ? 'yellow' : 'white'; return ( - {task.title} ); })} ); } export function TaskTroveSection({ tasks, width }) { return ( To-Do List {renderTaskTroveList(tasks)} ); }