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