import React from 'react'; import './index.less'; import { fullScreen } from 'store/full-screen'; import { observer } from 'mobx-react'; @observer export class FullScreen extends React.Component { public handleClose = (event: React.MouseEvent) => { if ((event.target as any).nodeName === 'SECTION') fullScreen.close(); } public render() { if (!fullScreen.content) return null; return (
{fullScreen.content}
); } }