bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/presentation-area/component.jsx

28 lines
685 B
React
Raw Normal View History

2021-06-09 21:49:59 +08:00
import React from 'react';
import PropTypes from 'prop-types';
2021-06-09 21:49:59 +08:00
import PresentationPodsContainer from '../../presentation-pod/container';
const PresentationArea = ({
width,
height,
presentationIsOpen,
darkTheme,
2021-06-09 21:49:59 +08:00
}) => {
const presentationAreaSize = {
presentationAreaWidth: width,
presentationAreaHeight: height,
};
return (
<PresentationPodsContainer {...{ presentationAreaSize, presentationIsOpen, darkTheme }} />
2021-06-09 21:49:59 +08:00
);
};
export default PresentationArea;
PresentationArea.propTypes = {
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
presentationIsOpen: PropTypes.bool.isRequired,
darkTheme: PropTypes.bool.isRequired,
};