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