12 lines
402 B
JavaScript
12 lines
402 B
JavaScript
import { useSelect } from '@wordpress/data';
|
|
import { BlockCanvas, store as blockEditorStore } from '@wordpress/block-editor';
|
|
|
|
export default function BlockEditor({ rootClientId }) {
|
|
const styles = useSelect(( select ) => {
|
|
const { getSettings } = select( blockEditorStore );
|
|
return getSettings().styles;
|
|
});
|
|
console.log(styles);
|
|
return <BlockCanvas height="100%" styles={styles} />
|
|
}
|