import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { styles } from './styles'; const propTypes = { children: PropTypes.node.isRequired, moderator: PropTypes.bool.isRequired, presenter: PropTypes.bool, talking: PropTypes.bool, muted: PropTypes.bool, listenOnly: PropTypes.bool, voice: PropTypes.bool, noVoice: PropTypes.bool, color: PropTypes.string, className: PropTypes.string, }; const defaultProps = { moderator: false, presenter: false, talking: false, muted: false, listenOnly: false, voice: false, noVoice: false, color: '#000', className: null, }; const UserAvatar = ({ children, moderator, presenter, talking, muted, listenOnly, color, voice, noVoice, className, }) => (