'use client' import { DataTableLayout } from "ikoncomponents"; import { ColumnDef } from "ikoncomponents"; import { Button } from "ikoncomponents"; import { SquarePenIcon } from "lucide-react"; interface ExpenseData { expenseName: string; location: string; currency: string; cost: number; quantity: number; description: string; totalCost?: number; [key: string]: any; } export default function ExpenseDataTable({ expenseDetails, onEdit }: { expenseDetails: ExpenseData[]; onEdit: (id: string) => void; }) { const columnsProuductDetails: ColumnDef[] = [ { accessorKey: "expenseName", header: () => (
Expense Name
), }, { accessorKey: "location", header: () => (
Location
), }, { accessorKey: "currency", header: () => (
Currency
), }, { accessorKey: "cost", header: () => (
Cost
), }, { accessorKey: "quantity", header: () => (
Quantity
), }, { accessorKey: "totalCost", header: () => (
Total Cost
), }, { header: () => (
Actions
), cell: (row) => ( ), }, ]; return ( row.uuid ?? row.expenseName, totalPages: 0, currentPage: 0, }} /> ); }