import { handleActions } from 'utils/store' ; const KEY_USER_AGENT = 'env.userAgent' ; const reducers = { [ KEY_USER_AGENT ] : handleActions < typeof KEY_USER_AGENT > ( { } , navigator ? navigator . userAgent : null ) , } ; export default reducers ; export const getUserAgent = ( state ) => state [ KEY_USER_AGENT ] ;