2020-06-16 20:38:43 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
2020-06-23 18:54:09 +00:00
|
|
|
const Screen = ({ children, fullscreen }) => (
|
|
|
|
<div className={fullscreen && 'fullscreen-preview'}>
|
2020-06-16 20:38:43 +00:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
2020-06-23 18:54:09 +00:00
|
|
|
|
|
|
|
Screen.defaultProps = {
|
|
|
|
fullscreen: false
|
|
|
|
};
|
|
|
|
|
2020-06-16 20:38:43 +00:00
|
|
|
Screen.propTypes = {
|
2020-06-23 18:54:09 +00:00
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
fullscreen: PropTypes.bool
|
2020-06-16 20:38:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Screen;
|