Download src/hooks/mutation/use-delete-secret.ts from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/hooks/mutation/use-delete-secret.ts
- Command line
-
hf download hf://SaylorTwift/openhands/src/hooks/mutation/use-delete-secret.ts
-
curl -L -o use-delete-secret.ts https://huggingface.co/SaylorTwift/openhands/resolve/main/src/hooks/mutation/use-delete-secret.ts
234 Bytes
| import { useMutation } from "@tanstack/react-query"; | |
| import { SecretsService } from "#/api/secrets-service"; | |
| export const useDeleteSecret = () => | |
| useMutation({ | |
| mutationFn: (id: string) => SecretsService.deleteSecret(id), | |
| }); | |