import { StoreState } from '../../../common/store/store.types'; import { getLoadingStatus } from 'app/shared/modules/loading/getStatus'; import { CONTACT } from 'app/modules/contact/store/contact.constants'; const pageContentsSlice = (state: StoreState) => state.contact; export const selectContact = (state: StoreState) => pageContentsSlice(state).sections; export const selectIsContactPageLoading = (state: StoreState) => getLoadingStatus([ CONTACT.FETCH_CONTACTS_SELECTOR ])(state);