import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { Button } from "@/components/ui/button" import { MoreHorizontal } from "lucide-react" import type { Transaction } from "@/types/dashboard" interface TransactionsTableProps { transactions: Transaction[] } export function UnclassifiedPaymentsTable({ transactions }: TransactionsTableProps) { return ( Unclassified Transactions You have {transactions.length} transactions that need to be labeled.
Description Amount Actions {transactions.map((transaction) => ( {transaction.description} ${transaction.amount.toFixed(2)} Actions View details Categorize ))}
) }