Skip to content

Commit

Permalink
Create private selector
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Aug 14, 2024
1 parent b533bfd commit 89c62b6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

0 comments on commit 89c62b6

Please sign in to comment.