tipus/editor/BlockEditor.jsx

20 lines
616 B
React
Raw Normal View History

2024-06-14 01:24:07 +00:00
import { useSelect } from '@wordpress/data';
import { InterfaceSkeleton, FullscreenMode } from '@wordpress/interface';
import { BlockBreadcrumb, BlockCanvas, store as blockEditorStore } from '@wordpress/block-editor';
2024-06-14 01:24:07 +00:00
export default function BlockEditor() {
2024-06-14 01:24:07 +00:00
const styles = useSelect(( select ) => {
const { getSettings } = select( blockEditorStore );
return getSettings().styles;
}, []);
return (
<>
<FullscreenMode isActive={ true } />
<InterfaceSkeleton
content={ <BlockCanvas height="100%" styles={styles} /> }
footer={ <BlockBreadcrumb /> }
/>
</>
);
2024-06-14 01:24:07 +00:00
}