import React from 'react'; import Modal from 'react-modal'; import Icon from '/imports/ui/components/icon/component'; import Button from '/imports/ui/components/button/component'; import BaseMenu from '../base/component'; import styles from '../styles.scss'; import Service from './service'; export default class UsersMenu extends BaseMenu { constructor(props) { super(props); } renderAdmin() { return (
); } renderUser() { return (
); } getContent() { let currentUser = Service.getCurrentUser(); if (currentUser.isPresenter || currentUser.isModerator) { return (
{this.renderAdmin()}
); } else { return (
{this.renderUser()}
); } } };