import {useMemo} from "react";
import {MRT_ColumnDef} from "mantine-react-table";
import {DealProductSchema} from "../../../../client";

const useDealProductsTableColumns = () => {
    return useMemo<MRT_ColumnDef<DealProductSchema>[]>(() => [
        {
            accessorKey: "products.name",
            header: "Название"
        },
        {
            accessorKey: "products.article",
            header: "Артикул"
        },
        {
            accessorKey: "quantity",
            header: "Количество"
        }
    ], [])
}

export default useDealProductsTableColumns;