/**
 * Custom mutation hook for copyTemplateToBlueprint
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { useMutation } from '@tanstack/react-query';
import { getClient } from '../client';
import { buildSelectionArgs } from '../selection';
import { customMutationKeys } from '../mutation-keys';
export function useCopyTemplateToBlueprintMutation(params) {
    const args = buildSelectionArgs(params.selection);
    const { selection: _selection, ...mutationOptions } = params ?? {};
    void _selection;
    return useMutation({
        mutationKey: customMutationKeys.copyTemplateToBlueprint(),
        mutationFn: (variables) => getClient()
            .mutation.copyTemplateToBlueprint(variables, {
            select: args.select,
        })
            .unwrap(),
        ...mutationOptions,
    });
}
