import { createSelector } from 'reselect'
import { ResultTypes } from '../dashboard-detail/dashboard-detail.action.types'

export const getErrorMessages = state => state.dashboardContent.errorMessages
export const getResultDiseaseWisePatientCount = state => state.dashboardContent.result[ResultTypes.DiseaseWisePatientCount]
export const getResultEducatorPatientCount = state => state.dashboardContent.result[ResultTypes.EducatorPatientCount]
export const getResultPatientCriticalityTrends = state => state.dashboardContent.criticalityTrendResult[ResultTypes.PatientCrticalityTrend]
export const getResultDashboardMetrics = state => state.dashboardContent.result[ResultTypes.DashboardMertrics]
export const getIsFetchInProgress = state => state.dashboardContent.inProgress
