(_: ActionState | null, formData: FormData)
| 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); |
nothing calls this directly
no test coverage detected