import type { SpecificationHistory } from "@/features/specification/lib/mock"; import { formatPrice } from "@/shared/lib/formatPrice"; import type { ColumnDef } from "@tanstack/react-table"; export const specificationColumns: ColumnDef[] = [ { accessorKey: "id", header: () =>
, cell: ({ row }) => { return
{row.index + 1}
; }, }, { accessorKey: "date", header: () =>
Sanasi
, cell: ({ row }) => { return
{row.original.date}
; }, }, { accessorKey: "pharmacy", header: () =>
Farmasevtika
, cell: ({ row }) => { return
{row.original.pharmacy}
; }, }, { accessorKey: "totalAmount", header: () =>
Hisoblangan narxi
, cell: ({ row }) => { return (
{formatPrice(row.original.totalAmount)}
); }, }, { accessorKey: "paymentPercentage", header: () =>
{"To'langan foizi"}
, cell: ({ row }) => { return (
{formatPrice(row.original.paymentPercentage)}%
); }, }, { accessorKey: "paymentAmount", header: () =>
{"To'langan narxi"}
, cell: ({ row }) => { return (
{formatPrice(row.original.paymentAmount)}
); }, }, ];