import { Dispatch, SetStateAction } from 'react'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import IconButton from '@material-ui/core/IconButton'; import VncDisplay from 'react-vnc-display'; import { Panel } from '../Panels'; import { RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; const useStyles = makeStyles(() => ({ displayBox: { paddingTop: '1em', paddingBottom: 0, }, closeButton: { borderRadius: 8, backgroundColor: RED, '&:hover': { backgroundColor: RED, }, }, closeBox: { paddingLeft: '.7em', paddingRight: 0, }, })); interface PreviewProps { setMode: Dispatch>; } const FullSize = ({ setMode }: PreviewProps): JSX.Element => { const classes = useStyles(); return ( setMode(true)} > ); }; export default FullSize;