mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
chore: moved all front end types into web/src/lib/types.ts
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import type { DeleteFileParams } from "@/lib/types";
|
||||
import { clientEnv } from "@/lib/env/client-env";
|
||||
import axios, { type AxiosError } from "axios";
|
||||
import { toast } from "sonner";
|
||||
|
||||
interface DeleteFileParams {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export function useFileOperations() {
|
||||
const deleteFileMutation = useMutation({
|
||||
mutationFn: async ({ id }: DeleteFileParams) => {
|
||||
|
||||
Reference in New Issue
Block a user