12 lines
402 B
React
12 lines
402 B
React
|
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} />
|
||
|
}
|