lbry-desktop/ui/js/selectors/user.js

13 lines
331 B
JavaScript
Raw Normal View History

2017-06-01 18:20:12 +02:00
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
)