MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / handleCreate

Function handleCreate

packages/react/src/pages/api-keys.tsx:173–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 const [creating, setCreating] = useState(false);
172
173 const handleCreate = async () => {
174 const trimmed = name.trim();
175 if (!trimmed) return;
176 setCreating(true);
177 const created = await props.onCreate(trimmed);
178 setCreating(false);
179 if (created) setCreatedKey(created);
180 };
181
182 return (
183 <>

Callers

nothing calls this directly

Calls 2

trackEventFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected