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

18 lines
653 B
React
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
2021-09-11 04:48:52 +08:00
import { layoutSelectOutput } from '../../layout/context';
2021-06-09 21:49:59 +08:00
import PresentationArea from './component';
const PresentationAreaContainer = ({ presentationIsOpen, darkTheme, setPresentationFitToWidth, fitToWidth }) => {
2021-09-11 04:48:52 +08:00
const presentation = layoutSelectOutput((i) => i.presentation);
2021-06-09 21:49:59 +08:00
return <PresentationArea {...{ ...presentation, presentationIsOpen, darkTheme, setPresentationFitToWidth, fitToWidth }} />;
2021-06-09 21:49:59 +08:00
};
export default PresentationAreaContainer;
PresentationAreaContainer.propTypes = {
presentationIsOpen: PropTypes.bool.isRequired,
darkTheme: PropTypes.bool.isRequired,
};