import { IEndUser } from './interfaces' const root = (state: any) => state.endUsers export const endUsers = (state: any): IEndUser[] => root(state).endUsers export const endUsersLoading = (state: any) => root(state).loading export const getEndUserById = (id: number) => (state: any): IEndUser => endUsers(state)[id]