import { useLoginToken } from "@contember/react-client";
import { useMemo } from "react";
import { GQLVariable } from "../../lib/variables.js";
import { useSingleTenantMutation } from "../../lib/useSingleTenantMutation.js";
const CREATE_RESET_PASSWORD_REQUEST_MUTATION = `
createResetPasswordRequest(email: $email) {
	ok
	error {
		code
		developerMessage
	}
}
`;
const createResetPasswordRequestVariables = {
  email: GQLVariable.Required(GQLVariable.String)
};
const useCreateResetPasswordRequest = () => {
  const loginToken = useLoginToken();
  return useSingleTenantMutation(CREATE_RESET_PASSWORD_REQUEST_MUTATION, createResetPasswordRequestVariables, useMemo(() => ({
    apiTokenOverride: loginToken
  }), [loginToken]));
};
export { useCreateResetPasswordRequest };
//# sourceMappingURL=createResetPasswordRequest.js.map
