Skip to content

Commit

Permalink
Add private isZoomOutMode selector (#64503)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Aug 15, 2024
1 parent 1dfcd70 commit f5f0c67
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 @@ -536,3 +536,14 @@ export const getBlockStyles = createSelector(
),
]
);

/**
* 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 f5f0c67

Please sign in to comment.