UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

41 lines (30 loc) 1.07 kB
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {GlobalState} from 'types/store'; export function getLogs(state: GlobalState) { return state.entities.admin.logs; } export function getAudits(state: GlobalState) { return state.entities.admin.audits; } export function getConfig(state: GlobalState) { return state.entities.admin.config; } export function getLdapGroups(state: GlobalState) { return state.entities.admin.ldapGroups; } export function getLdapGroupsCount(state: GlobalState) { return state.entities.admin.ldapGroupsCount; } export function getEnvironmentConfig(state: GlobalState) { return state.entities.admin.environmentConfig; } export function getComplianceReports(state: GlobalState) { return state.entities.admin.complianceReports; } export function getClusterInfo(state: GlobalState) { return state.entities.admin.clusterInfo; } export function getUserAccessTokens(state: GlobalState) { return state.entities.admin.userAccessTokens; }