import React from 'react' import { useFormEditorActions } from '../context/FormEditorActionsContext' import PageReturnButton from './PageReturnButton' /** * Vollseiten-Editor: optional Zurück oben; FormActionBar fix unten (FormEditorBottomSlot). * Mit actionConfig ist showReturn standardmäßig aus — Rücksprung über Abbrechen / Speichern & Schließen. */ export default function PageFormEditorChrome({ title, fallbackPath, fallbackLabel, actionConfig, children, testId, showReturn = false, }) { useFormEditorActions(actionConfig) return (
{showReturn && fallbackPath && fallbackLabel ? ( ) : null}

{title}

{children}
) }