import { IListQuotes_Response_DTO } from "@shared/contexts"; import { ColumnDef } from "@tanstack/react-table"; import { DataTablaRowActionFunction, DataTableRowActions } from "@/components"; import { Badge } from "@/ui"; import { useMemo } from "react"; export const useQuoteDataTableColumns = ( actions: DataTablaRowActionFunction ): ColumnDef[] => { const customerColumns: ColumnDef[] = useMemo( () => [ /*{ id: "complete_name", header: "Nombre", accessorFn: (row) => (
{acronym(`${row.first_name} ${row.last_name}`)}

{`${row.first_name} ${row.last_name}`}

{row.job_title}

), enableSorting: true, sortingFn: "alphanumeric", enableHiding: false, cell: ({ renderValue }) => ( <>{renderValue()} ), },*/ { id: "state", accessorKey: "state", header: "Estado", cell: ({ renderValue }) => ( <>{renderValue()} ), }, { id: "client", accessorKey: "client", header: "Cliente", enableSorting: false, sortingFn: "alphanumeric", }, { id: "actions", header: "Acciones", cell: ({ row }) => { return ; }, }, ], [actions] ); return customerColumns; };