mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 05:49:12 +02:00
Wire structured feedback kind through the frontend/core feedback path so desktop route-renderer errors submit as bug feedback, and bring the feedback client onto parseWithFallback. MUL-3768
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import { useMutation } from "@tanstack/react-query";
|
|
import { api } from "../api";
|
|
import type { FeedbackKind } from "./types";
|
|
|
|
export interface CreateFeedbackInput {
|
|
message: string;
|
|
url?: string;
|
|
workspace_id?: string;
|
|
kind?: FeedbackKind;
|
|
}
|
|
|
|
export function useCreateFeedback() {
|
|
return useMutation({
|
|
mutationFn: (input: CreateFeedbackInput) => api.createFeedback(input),
|
|
});
|
|
}
|