/* NOTE: this file only temporarily resides in scratch-gui. Nearly identical code appears in scratch-www, and the two should eventually be consolidated. */ import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; import MenuBarMenu from './menu-bar-menu.jsx'; import {MenuSection} from '../menu/menu.jsx'; import MenuItemContainer from '../../containers/menu-item.jsx'; import UserAvatar from './user-avatar.jsx'; import dropdownCaret from './dropdown-caret.svg'; import styles from './account-nav.css'; const AccountNavComponent = ({ className, classroomId, isEducator, isOpen, isRtl, isStudent, menuBarMenuClassName, onClick, onClose, onLogOut, profileUrl, thumbnailUrl, username }) => (
{thumbnailUrl ? ( ) : null} {username}
{isEducator ? ( ) : null} {isStudent ? ( ) : null}
); AccountNavComponent.propTypes = { className: PropTypes.string, classroomId: PropTypes.string, isEducator: PropTypes.bool, isOpen: PropTypes.bool, isRtl: PropTypes.bool, isStudent: PropTypes.bool, menuBarMenuClassName: PropTypes.string, onClick: PropTypes.func, onClose: PropTypes.func, onLogOut: PropTypes.func, profileUrl: PropTypes.string, thumbnailUrl: PropTypes.string, username: PropTypes.string }; export default AccountNavComponent;