bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/component.jsx
2024-05-03 09:31:18 -03:00

45 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,
showBranding: PropTypes.bool.isRequired,
};
const defaultProps = {
compact: false,
CustomLogoUrl: null,
};
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);