/** * @file trash/TrashList.tsx * @description Client component rendering the list of deleted tasks with rich metadata, priority badges, and restore/delete actions. */ "use client"; import { Task, PRIORITY_CONFIG } from "@/types/task"; import { Calendar } from "lucide-react"; import TaskActionButton from "./components/TaskActionButton"; /** * Renders a list of deleted tasks stored in the trash, featuring priority badges, * deletion dates, and action controls for permanent deletion or restoration. * * @param {Object} props - The component props. * @param {Task[]} props.tasks - The array of deleted tasks to render. * @returns {JSX.Element} The rendered trash list component or an empty state placeholder. */ export default function TrashList({ tasks }: { tasks: Task[] }) { return (
No deleted tasks found.
Your trash is completely empty.
{task.description}
)}