import { ColumnHeader } from "@/shared/data-view/table-view" import type { ColumnDef } from "@tanstack/react-table" /** Core expense-item columns shared between the expense items page and selector dialogs. */ export const expenseItemColumns = { name: { accessorKey: "item_name", header: ({ column }) => , cell: ({ row }) => { const r = row.original as any return {r.item_name || "—"} }, }, purchasePrice: { accessorKey: "purchase_price", header: ({ column }) => , cell: ({ row }) => { const val = (row.original as any).purchase_price return val != null ? `$${Number(val).toFixed(2)}` : "—" }, }, chartOfAccount: { accessorKey: "purchase_chart_of_account", header: ({ column }) => , cell: ({ row }) => (row.original as any).purchase_chart_of_account || "—", }, } satisfies Record>