import { CardService } from "../../../../../client";
import ObjectList from "../../../../../hooks/objectList.tsx";


type Props = {
    cardId: number;
}

const useAvailableEmployeesList = ({ cardId }: Props) =>
    ObjectList({
        queryFn: () => CardService.getAvailableEmployeesToAssign({ cardId }),
        getObjectsFn: response => response.employees,
        queryKey: "getAvailableEmployeesToAssign",
    });

export default useAvailableEmployeesList;
