import { useEditorSlot } from './useEditorSlot'; /** * Where an editor opens — a column beside the preview rather than a drawer beneath it. * * It was rendered under the frame, which took the height from the thing being edited: choosing a * spacing shrank the page you were choosing it for, and on a laptop the preview lost a third of itself * to a row of two dropdowns. A panel keeps the page whole and puts the controls where a workspace puts * controls. * * It holds nothing. The panel that owns a selection builds the editor and announces it — see * useEditorSlot for why it carries the element rather than a description of one. */ export const EditorPanel = () => { const [editor] = useEditorSlot(); if (!editor) { return (
Pick a block in the page to edit it, or press Spacing on a band.