import { TrashIcon } from "@/assets/icons"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { cn } from "@/lib/utils"; import dayjs from "dayjs"; import { getInvoiceTableData } from "./fetch"; import { DownloadIcon, PreviewIcon } from "./icons"; export async function InvoiceTable() { const data = await getInvoiceTableData(); return (
Package Invoice Date Status Actions {data.map((item, index) => (
{item.name}

${item.price}

{dayjs(item.date).format("MMM DD, YYYY")}

{item.status}
))}
); }