UNPKG

@wordpress/block-editor

Version:
30 lines (24 loc) 577 B
import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { useViewportMatch } from '@wordpress/compose'; /** * Internal dependencies */ import BlockMover from '../block-mover'; function BlockMobileToolbar({ clientId }) { const isMobile = useViewportMatch('small', '<'); if (!isMobile) { return null; } return createElement("div", { className: "block-editor-block-mobile-toolbar" }, createElement(BlockMover, { clientIds: [clientId] })); } export default BlockMobileToolbar; //# sourceMappingURL=index.js.map