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

31 lines
793 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import PresentationPodsContainer from '../../presentation-pod/container';
const PresentationArea = ({
width,
height,
presentationIsOpen,
darkTheme,
layoutType,
setPresentationFitToWidth,
fitToWidth,
}) => {
const presentationAreaSize = {
presentationAreaWidth: width,
presentationAreaHeight: height,
};
return (
<PresentationPodsContainer {...{ presentationAreaSize, presentationIsOpen, darkTheme, layoutType, setPresentationFitToWidth, fitToWidth }} />
);
};
export default PresentationArea;
PresentationArea.propTypes = {
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
presentationIsOpen: PropTypes.bool.isRequired,
darkTheme: PropTypes.bool.isRequired,
};