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