diff --git a/packages/block-editor/src/store/private-selectors.js b/packages/block-editor/src/store/private-selectors.js index dcd315a0ae2804..0d6f665316e0db 100644 --- a/packages/block-editor/src/store/private-selectors.js +++ b/packages/block-editor/src/store/private-selectors.js @@ -515,3 +515,14 @@ export function getTemporarilyEditingFocusModeToRevert( state ) { export function getInserterSearchInputRef( state ) { return state.inserterSearchInputRef; } + +/** + * Returns whether zoom out mode is enabled. + * + * @param {Object} state Editor state. + * + * @return {boolean} Is zoom out mode enabled. + */ +export function isZoomOutMode( state ) { + return state.editorMode === 'zoom-out'; +}