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

const useServicesKitsTableColumns = () => {
    return useMemo<MRT_ColumnDef<GetServiceKitSchema>[]>(() => [
        {
            accessorKey: "name",
            header: "Название набора"
        },
        {
            header: "Кол-во услуг",
            Cell: ({row}) => row.original.services.length
        }
    ], []);
}
export default useServicesKitsTableColumns;