"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const reactClient = require("@contember/react-client");
const react = require("react");
const variables = require("../../lib/variables.cjs");
const useSingleTenantMutation = require("../../lib/useSingleTenantMutation.cjs");
const CREATE_RESET_PASSWORD_REQUEST_MUTATION = `
createResetPasswordRequest(email: $email) {
	ok
	error {
		code
		developerMessage
	}
}
`;
const createResetPasswordRequestVariables = {
  email: variables.GQLVariable.Required(variables.GQLVariable.String)
};
const useCreateResetPasswordRequest = () => {
  const loginToken = reactClient.useLoginToken();
  return useSingleTenantMutation.useSingleTenantMutation(
    CREATE_RESET_PASSWORD_REQUEST_MUTATION,
    createResetPasswordRequestVariables,
    react.useMemo(() => ({
      apiTokenOverride: loginToken
    }), [loginToken])
  );
};
exports.useCreateResetPasswordRequest = useCreateResetPasswordRequest;
//# sourceMappingURL=createResetPasswordRequest.cjs.map
