lbry-desktop/ui/js/selectors/user.js
2017-06-07 11:56:01 -04:00

13 lines
331 B
JavaScript

import { createSelector } from 'reselect'
export const _selectState = state => state.user || {}
export const selectAuthenticationIsPending = createSelector(
_selectState,
(state) => state.authenticationIsPending
)
export const selectAuthenticationIsFailed = createSelector(
_selectState,
(state) => state.user === null
)