import { createSelector } from '@ngxs/store' ; import { ProfilePageStateModel } from './profile.model' ; import { ProfilePageState } from './profile.state' ; export const selectUser = ( ) => createSelector ( [ ProfilePageState ] , ( state ) => state . profile . listData ) ; export const selectUserLoadingStates = ( ) => createSelector ( [ ProfilePageState ] , ( state ) => ( { isLoading : state . profile . isLoading , isSuccess : state . profile . isSuccess , isFailed : state . profile . isFailed , } ) ) ;