/* eslint-disable */
//@ts-nocheck
import type * as _Types from '../types';

import type { DocumentNode } from 'graphql';
import * as Apollo from '@apollo/client';
const defaultOptions = {} as const;
export type StopExerciseVariables = _Types.Exact<{
  id: _Types.Scalars['ID']['input'];
}>;


export type StopExercise = { stopExercise: { exercise: { id: string } | null } | null };


export const StopExerciseDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StopExercise"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stopExercise"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"exerciseId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"exercise"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode;
export type StopExerciseMutationFn = Apollo.MutationFunction<StopExercise, StopExerciseVariables>;

/**
 * __useStopExercise__
 *
 * To run a mutation, you first call `useStopExercise` within a React component and pass it any options that fit your needs.
 * When your component renders, `useStopExercise` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [stopExercise, { data, loading, error }] = useStopExercise({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useStopExercise(baseOptions?: Apollo.MutationHookOptions<StopExercise, StopExerciseVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<StopExercise, StopExerciseVariables>(StopExerciseDocument, options);
      }
export type StopExerciseHookResult = ReturnType<typeof useStopExercise>;
export type StopExerciseMutationResult = Apollo.MutationResult<StopExercise>;
export type StopExerciseMutationOptions = Apollo.BaseMutationOptions<StopExercise, StopExerciseVariables>;