'use client' import { useActionState } from 'react' import { ladderAdminText } from '@/lib/i18n/admin' import { createLadderAction, type ActionResult } from './actions' /** Ein neues Gefüge anlegen. Die Sprossen kommen danach im Editor dazu. */ export function NewLadderForm() { const [state, action, pending] = useActionState( createLadderAction, null, ) return (
{state && !state.ok ? ( {state.error} ) : null}
) }