import React, { useMemo } from 'react' import { Link } from 'react-router-dom' import FormActionBar from './FormActionBar' import { useFormEditorActions } from '../context/FormEditorActionsContext' /** * Vollseiten-Editor: sticky Kopfzeile (Desktop) + Mobile-Dock via FormEditorActionsProvider. */ export default function PageFormEditorChrome({ title, backTo, backLabel = 'Zurück', actionConfig, children, testId, }) { useFormEditorActions(actionConfig) const headerBar = useMemo(() => { if (!actionConfig) return null return ( ) }, [actionConfig]) return (
{backTo ? ( ← {backLabel} ) : null}

{title}

{headerBar ? (
{headerBar}
) : null}
{children}
) }