File size: 438 Bytes
3d700dd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import { useMutation } from "@tanstack/react-query";
import { SecretsService } from "#/api/secrets-service";
export const useUpdateSecret = () =>
useMutation({
mutationFn: ({
secretToEdit,
name,
description,
value,
}: {
secretToEdit: string;
name: string;
description?: string;
value?: string;
}) => SecretsService.updateSecret(secretToEdit, name, description, value),
});
|