import * as Constants from 'app/common/constants'; import React from 'react'; import { css } from 'react-emotion'; const STYLES_INDICATOR = css` font-family: ${Constants.fontFamilies.mono}; color: ${Constants.colors.darkText}; font-size: 10px; text-transform: uppercase; padding-top: 2px; `; const STYLES_USERNAME = css` color: ${Constants.colors.green}; `; export default class UserIndicator extends React.Component { render() { if (!this.props.user) { return Logged out; } return ( Logged in as {this.props.user.username} ); } }