import { createContext } from "react"; export type AnswerUiSelection = { title: string; text: string }; export type AnswerUiMapTarget = { layer: "junctions" | "pipes" | "valves" | "pumps" | "tanks" | "reservoirs" | "scada"; feature_ids: string[]; }; export type AnswerUiInteractions = { disabled: boolean; onLocate?: (target: AnswerUiMapTarget) => Promise | void; onSubmit?: (text: string) => Promise | void; evidenceFilter?: string; submitMode?: "send" | "draft"; chartWindowKey?: string; }; export const AnswerInteractionContext = createContext({ disabled: true });