The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2025 Daytona Platforms Inc.
* Modified by BoxLite AI, 2025-2026
* SPDX-License-Identifier: AGPL-3.0
*/
import { useMutation } from '@tanstack/react-query'
import { useSvix } from 'svix-react'
interface DeleteWebhookEndpointVariables {
endpointId: string
}
export const useDeleteWebhookEndpointMutation = () => {
const { svix, appId } = useSvix()
return useMutation({
mutationFn: async ({ endpointId }: DeleteWebhookEndpointVariables) => {
await svix.endpoint.delete(appId, endpointId)
},
})
}