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

export const useServicesTableColumns = () => {
    return useMemo<MRT_ColumnDef<ServiceSchema>[]>(() => [
        {
            accessorKey: "category",
            header: "Категория",
            enableGrouping: false,
            enableSorting: false,
            accessorFn: (row) => row.category.name
        },
        {
            accessorKey: "name",
            header: "Услуга",
            enableGrouping: false,
            enableSorting: false,

        },
        {
            accessorKey: "price",
            header: "Цена",
            enableGrouping: false,
            enableSorting: false,


        },
    ], []);

}