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

const usePositionsList = () => ObjectList({
    queryFn: PositionService.getAllPositions,
    getObjectsFn: response => response.positions,
    queryKey: "getAllPositions"
})
export default usePositionsList;