import { get } from 'lodash' import { create } from 'pubsweet-client/src/helpers/api' export const currentUserIs = (state, role) => get(state, `currentUser.user.${role}`) export const confirmUser = (userId, confirmationToken) => create(`/users/confirm`, { userId, confirmationToken, })