import React from 'react' import {ROLE} from '../../helper.js' require('./UserStatus.styl') // @TODO Côme - 2018/08/07 - since api yet doesn't handle notification subscriptions, this file is WIP export const UserStatus = props =>
{props.t('Hi {{name}} ! Currently, you are ', {name: props.user.public_name})}
{(() => { const myself = props.curWs.memberList.find(m => m.id === props.user.user_id) if (myself === undefined) return const myRole = ROLE.find(r => r.slug === myself.role) return (
{myRole.label}
) })()}
{props.t("You have subscribed to this workspace's notifications")} (NYI)
{props.displayNotifBtn ? (
{props.t('subscriber')}
{props.t('unsubscribed')}
) : (
{props.t('Change your status')}
) }
export default UserStatus