bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/component.jsx
2021-12-06 16:32:41 +00:00

44 lines
1.0 KiB
JavaScript
Executable File

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import injectWbResizeEvent from '/imports/ui/components/presentation/resize-wrapper/component';
import Styled from './styles';
import CustomLogo from './custom-logo/component';
import UserContentContainer from './user-list-content/container';
const propTypes = {
compact: PropTypes.bool,
CustomLogoUrl: PropTypes.string.isRequired,
showBranding: PropTypes.bool.isRequired,
};
const defaultProps = {
compact: false,
};
class UserList extends PureComponent {
render() {
const {
compact,
CustomLogoUrl,
showBranding,
} = this.props;
return (
<Styled.UserList>
{
showBranding
&& !compact
&& CustomLogoUrl
? <CustomLogo CustomLogoUrl={CustomLogoUrl} /> : null
}
<UserContentContainer compact={compact} />
</Styled.UserList>
);
}
}
UserList.propTypes = propTypes;
UserList.defaultProps = defaultProps;
export default injectWbResizeEvent(UserList);