2021-09-10 04:49:15 +08:00
|
|
|
import React from 'react';
|
2023-03-10 19:30:46 +08:00
|
|
|
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';
|
|
|
|
|
2023-08-05 00:41:42 +08:00
|
|
|
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
|
|
|
|
2023-08-05 00:41:42 +08:00
|
|
|
return <PresentationArea {...{ ...presentation, presentationIsOpen, darkTheme, setPresentationFitToWidth, fitToWidth }} />;
|
2021-06-09 21:49:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default PresentationAreaContainer;
|
2023-03-10 19:30:46 +08:00
|
|
|
|
|
|
|
PresentationAreaContainer.propTypes = {
|
|
|
|
presentationIsOpen: PropTypes.bool.isRequired,
|
|
|
|
darkTheme: PropTypes.bool.isRequired,
|
|
|
|
};
|