2021-06-09 21:49:59 +08:00
|
|
|
import React from 'react';
|
2023-03-10 19:30:46 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2021-06-09 21:49:59 +08:00
|
|
|
import PresentationPodsContainer from '../../presentation-pod/container';
|
|
|
|
|
|
|
|
const PresentationArea = ({
|
|
|
|
width,
|
|
|
|
height,
|
2022-02-11 22:30:35 +08:00
|
|
|
presentationIsOpen,
|
2023-02-14 11:28:36 +08:00
|
|
|
darkTheme,
|
2023-06-29 03:06:19 +08:00
|
|
|
layoutType,
|
2023-08-05 00:41:42 +08:00
|
|
|
setPresentationFitToWidth,
|
|
|
|
fitToWidth,
|
2021-06-09 21:49:59 +08:00
|
|
|
}) => {
|
|
|
|
const presentationAreaSize = {
|
|
|
|
presentationAreaWidth: width,
|
|
|
|
presentationAreaHeight: height,
|
|
|
|
};
|
|
|
|
return (
|
2023-08-10 22:49:01 +08:00
|
|
|
<PresentationPodsContainer {...{ presentationAreaSize, presentationIsOpen, darkTheme, layoutType, setPresentationFitToWidth, fitToWidth }} />
|
2021-06-09 21:49:59 +08:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default PresentationArea;
|
2023-03-10 19:30:46 +08:00
|
|
|
|
|
|
|
PresentationArea.propTypes = {
|
|
|
|
width: PropTypes.number.isRequired,
|
|
|
|
height: PropTypes.number.isRequired,
|
|
|
|
presentationIsOpen: PropTypes.bool.isRequired,
|
|
|
|
darkTheme: PropTypes.bool.isRequired,
|
|
|
|
};
|