Fix server action state exports

This commit is contained in:
t.indorf
2026-05-19 11:09:53 +02:00
parent b5eb288104
commit 84714b8b32
6 changed files with 9 additions and 12 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ import { Checkbox } from "@/components/ui/checkbox";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { initialRegisterState, registerAction } from "./actions";
import { registerAction, type RegisterState } from "./actions";
const initialRegisterState: RegisterState = { attempt: 0 };
export function RegisterForm() {
const [state, formAction, pending] = useActionState(