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

export const useSimpleUsersTableColumns = () => {
    return useMemo<MRT_ColumnDef<UserSchema>[]>(() => [
        {
            accessorKey: "firstName",
            header: "Имя"
        },
        {
            accessorKey: "secondName",
            header: "Фамилия"
        },
        {
            accessorKey: "position.name",
            header: "Должность"
        },
    ], []);
}