import { Success } from '@abraham/remotedata' ; import { RootState } from '..' ; export const selectUserId = ( state ) => { if ( state . user instanceof Success ) { return state . user . data . uid ; } else { return undefined ; } } ;