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


type Props = {
    dealId: number;
}

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

export default useAvailableEmployeesList;
