Use @wordpress/editor store with email editor components

MAILPOET-6303
This commit is contained in:
Oluwaseun Olorunsola
2024-11-12 14:48:02 +01:00
committed by Rostislav Wolný
parent e37997e2e1
commit f945ea8388
5 changed files with 34 additions and 44 deletions

View File

@@ -231,18 +231,6 @@ export function getEmailPostId( state: State ): number {
return state.postId;
}
export const isInserterSidebarOpened = createRegistrySelector(
( select ) => () =>
// @ts-expect-error isInserterOpened is missing in types.
select( editorStore ).isInserterOpened() as boolean
);
export const isListviewSidebarOpened = createRegistrySelector(
( select ) => () =>
// @ts-expect-error isListViewOpened is missing in types.
select( editorStore ).isListViewOpened() as boolean
);
export function getSettingsSidebarActiveTab( state: State ): string {
return state.settingsSidebar.activeTab;
}