import { createFeatureSelector, createSelector } from '@ngrx/store'; import * as fromAdmin from './admin.reducer'; const feature = createFeatureSelector(fromAdmin.adminFeatureKey); const highlightedMenu = createSelector(feature, (state) => state?.highlightedMenu); const menuOpen = createSelector(feature, (state) => state.menuOpen); const menus = createSelector(feature, (state) => state?.menus); const actions = createSelector(feature, (state) => state.actions); const subActions = createSelector(feature, (state) => state.subActions); const panelOpen = createSelector(feature, (state) => state.panelOpen); const componentType = createSelector(feature, (state) => state?.componentType); export const AdminSelectors = { feature, highlightedMenu, menuOpen, menus, actions, subActions, panelOpen, componentType };