"use client"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { Badge } from "@/components/ui/badge"; import { TaskViewProps } from "../TaskView"; import { getColor } from "@/lib/ui/color"; import TableTask from "./Task"; export function TableView({ tasks, setTasks, tags }: TaskViewProps) { const tasksArray = Object.values(tasks).sort( (a, b) => b.createdAt - a.createdAt, ); return (