const React = require('react'); const createClass = require('create-react-class'); const _ = require('lodash'); const cx = require('classnames'); const UIPage = require('../basePages/uiPage/uiPage.jsx'); const Nav = require('naturalcrit/nav/nav.jsx'); const Navbar = require('../../navbar/navbar.jsx'); const RecentNavItem = require('../../navbar/recent.navitem.jsx').both; const Account = require('../../navbar/account.navitem.jsx'); const NewBrew = require('../../navbar/newbrew.navitem.jsx'); const HelpNavItem = require('../../navbar/help.navitem.jsx'); const AccountPage = createClass({ displayName : 'AccountPage', getDefaultProps : function() { return { brew : {}, uiItems : [] }; }, getInitialState : function() { return { uiItems : this.props.uiItems }; }, navItems : function() { return ; }, uiItems : function() { // console.log(JSON.stringify(this.props.uiItems)); const result = <>

Account Information

Username: {this.props.uiItems.username || 'No user currently logged in'}

Last Login: {this.props.uiItems.issued || '-'}

MongoDB Information

Brews on MongoDB: {this.props.uiItems.mongoCount || '-'}

Google Information

Linked to Google: {this.props.uiItems.googleId ? 'YES' : 'NO'}

{this.props.uiItems.googleId ?

Brews on Google Drive: {this.props.uiItems.fileCount || '-'}

: '' } ; return result; }, render : function(){ return ; } }); module.exports = AccountPage;