import { values } from '@agiliza/utils/method'

import { Store } from './slice'

export const getContext = (state: Store) => state

export const getContextEntities = (state: Store) => ({ states: values(state.states.byId), cities: values(state.cities.byId) })
