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


export const useClientsTableColumns = () => {
    return useMemo<MRT_ColumnDef<ClientSchema>[]>(() => [
        {
            accessorKey: "name",
            header: "Имя",
        },
        {
            accessorKey: "details.telegram",
            header: "Телеграм"
        },
        {
            accessorKey: "details.email",
            header: "EMAIL"
        },
        {
            accessorKey: "details.phoneNumber",
            header: "Телефон"
        },
        {
            accessorKey: "details.inn",
            header: "ИНН"
        },
        {
            accessorKey: "companyName",
            header: "Название компании"
        },
        {
            accessorKey: "barcodeTemplate.name",
            header: "Шаблон штрихкодов"
        }
    ], []);
}
