/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { useMutation, } from "@tanstack/react-query";
import { feedbackDeleteFeedbackById } from "../funcs/feedbackDeleteFeedbackById.js";
import { combineSignals } from "../lib/primitives.js";
import { unwrapAsync } from "../types/fp.js";
import { useInkeepAnalyticsContext } from "./_context.js";
/**
 * Delete Feedback by ID
 */
export function useFeedbackDeleteFeedbackByIdMutation(options) {
    const client = useInkeepAnalyticsContext();
    return useMutation({
        ...buildFeedbackDeleteFeedbackByIdMutation(client, options),
        ...options,
    });
}
export function mutationKeyFeedbackDeleteFeedbackById() {
    return ["@inkeep/inkeep-analytics", "feedback", "deleteFeedbackById"];
}
export function buildFeedbackDeleteFeedbackByIdMutation(client$, hookOptions) {
    return {
        mutationKey: mutationKeyFeedbackDeleteFeedbackById(),
        mutationFn: function feedbackDeleteFeedbackByIdMutationFn({ request, options, }) {
            const mergedOptions = {
                ...hookOptions,
                ...options,
                fetchOptions: {
                    ...hookOptions?.fetchOptions,
                    ...options?.fetchOptions,
                    signal: combineSignals(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
                },
            };
            return unwrapAsync(feedbackDeleteFeedbackById(client$, request, mergedOptions));
        },
    };
}
//# sourceMappingURL=feedbackDeleteFeedbackById.js.map