MCPcopy Create free account
hub / github.com/9d8dev/directory / handleDelete

Function handleDelete

components/admin/category-manager.tsx:70–72  ·  view source on GitHub ↗
(_: ActionState | null, formData: FormData)

Source from the content-addressed store, hash-verified

68 };
69
70 const handleDelete = async (_: ActionState | null, formData: FormData) => {
71 return deleteCategory(null, { id: formData.get("id") as string });
72 };
73
74 const [createState, createAction] = useFormState(handleCreate, null);
75 const [updateState, updateAction] = useFormState(handleUpdate, null);

Callers

nothing calls this directly

Calls 1

deleteCategoryFunction · 0.90

Tested by

no test coverage detected