'use client' import { useActionState } from 'react' import { createOrganization } from './actions' const initialState = { success: false, error: '', } export function CreateOrgForm() { const [state, formAction, isPending] = useActionState(createOrganization, initialState) return (

Neue Innung anlegen

{state.success && (
Innung wurde erfolgreich angelegt!
)} {state.error && (
{state.error}
)}

Für interne Zuordnung (nur Kleinbuchstaben, ohne Leerzeichen).

) }