UNPKG

@gechiui/block-editor

Version:
31 lines (25 loc) 594 B
import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import { useViewportMatch } from '@gechiui/compose'; /** * Internal dependencies */ import BlockMover from '../block-mover'; function BlockMobileToolbar(_ref) { let { clientId } = _ref; 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