UNPKG

@gechiui/block-editor

Version:
25 lines (20 loc) 459 B
/** * GeChiUI dependencies */ import { useViewportMatch } from '@gechiui/compose'; /** * Internal dependencies */ import BlockMover from '../block-mover'; function BlockMobileToolbar( { clientId } ) { const isMobile = useViewportMatch( 'small', '<' ); if ( ! isMobile ) { return null; } return ( <div className="block-editor-block-mobile-toolbar"> <BlockMover clientIds={ [ clientId ] } /> </div> ); } export default BlockMobileToolbar;