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

Function loadPresets

client-next/src/components/presets-manager.tsx:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }, [createOpen, skills, plugins, config]);
58
59 const loadPresets = async () => {
60 try {
61 const data = await getPresets();
62 setPresets(data);
63 } catch {
64 toast.error("Failed to load presets");
65 }
66 };
67
68 useEffect(() => {
69 if (open) loadPresets();

Callers 3

PresetsManagerFunction · 0.85
handleCreateFunction · 0.85
handleDeleteFunction · 0.85

Calls 1

getPresetsFunction · 0.90

Tested by

no test coverage detected