import { get } from 'lodash' export const currentUserIs = (state, role) => get(state, `currentUser.user.${role}`)