import { createSelector } from '@ngxs/store' ; import { map } from 'lodash' ; import { TabsStateModel } from './tabs.model' ; import { TabsState } from './tabs.state' ; export const selectTabsList = ( ) => createSelector ( [ TabsState ] , ( tabState ) => map ( tabState . listData , ( tab ) => tab ) ) ;