MCPcopy Create free account
hub / github.com/Microck/opencode-studio / handleDelete

Function handleDelete

client-next/src/components/presets-manager.tsx:104–113  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

102 };
103
104 const handleDelete = async (id: string) => {
105 if (!confirm("Delete this preset?")) return;
106 try {
107 await deletePreset(id);
108 toast.success("Preset deleted");
109 loadPresets();
110 } catch {
111 toast.error("Failed to delete preset");
112 }
113 };
114
115 return (
116 <>

Callers 1

PresetsManagerFunction · 0.70

Calls 2

deletePresetFunction · 0.90
loadPresetsFunction · 0.85

Tested by

no test coverage detected