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.address",
            header: "Адрес"
        },
        {
            accessorKey: "details.email",
            header: "EMAIL"
        },
        {
            accessorKey: "details.phone_number",
            header: "Телефон"
        }
    ], []);
}
