diff --git a/packages/editor/src/components/simple-editing-mode-selector/index.js b/packages/editor/src/components/simple-editing-mode-selector/index.js index 302715dd14d2e7..8f718e572c97e1 100644 --- a/packages/editor/src/components/simple-editing-mode-selector/index.js +++ b/packages/editor/src/components/simple-editing-mode-selector/index.js @@ -3,22 +3,24 @@ */ import { __ } from '@wordpress/i18n'; import { - Dropdown, Button, - MenuItemsChoice, - NavigableMenu, SVG, Path, + privateApis as componentsPrivateApis, } from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; import { forwardRef } from '@wordpress/element'; +import { edit } from '@wordpress/icons'; /** * Internal dependencies */ +import { unlock } from '../../lock-unlock'; import { store as editorStore } from '../../store'; import { TEMPLATE_POST_TYPE } from '../../store/constants'; +const { DropdownMenuV2 } = unlock( componentsPrivateApis ); + const selectIcon = ( ( + - ) } - popoverProps={ { placement: 'bottom-start' } } - renderContent={ () => ( - + + setRenderingMode( 'template-locked' ) } + > + + { __( 'Edit' ) } + + + { __( 'Focus on content.' ) } + + + setRenderingMode( 'post-only' ) } > - - setRenderingMode( - mode === 'simple' - ? 'template-locked' - : 'post-only' - ) - } - choices={ [ - { - value: 'advanced', - label: __( 'Design' ), - info: __( - 'Full control over layout and styling' - ), - }, - { - value: 'simple', - label: __( 'Edit' ), - info: __( - 'Focus on page structure and content' - ), - }, - ] } - /> - - ) } - /> + + { __( 'Design' ) } + + + { __( 'Full control over layout and styling.' ) } + + + + ); }