delete product

This commit is contained in:
hamid zarghami
2026-01-24 16:38:29 +03:30
parent 409003b0e8
commit 5fad34cc84
4 changed files with 43 additions and 8 deletions
@@ -80,3 +80,9 @@ export const useUpdateProduct = () => {
},
});
};
export const useDeleteProduct = () => {
return useMutation({
mutationFn: (id: number) => api.deleteProduct(id),
});
};