/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable react/no-unused-prop-types */ /* eslint-disable react/destructuring-assignment */ import React from 'react'; import { H3, Card, Dialog } from '@blueprintjs/core'; import { Row, Col } from 'react-flexbox-grid'; import { createStyles, makeStyles } from '@material-ui/core/styles'; import CloseOverlayButton from '../../CloseOverlayButton'; import isProduction from '../../../utils/isProduction'; import PreviewGridList from './PreviewGridList'; import TEST_SCREEN_SHARING_OBECTS from '../../../constants/test-screen-sharing-objects.json'; const Zoom = require('react-reveal/Zoom'); const Fade = require('react-reveal/Fade'); const useStyles = makeStyles(() => createStyles({ dialogRoot: { width: '90%', height: '87vh !important', overflowY: 'scroll', }, closeButton: { position: 'relative', width: '40px', height: '40px', left: 'calc(100% - 55px)', borderRadius: '100px', zIndex: 9999, }, overlayInnerRoot: { width: '90%', height: '90%' }, sharePreviewsContainer: { top: '60px', position: 'relative', height: '100%', }, }) ); interface ChooseAppOrScreenOverlayProps { isEntireScreenToShareChosen: boolean; isChooseAppOrScreenOverlayOpen: boolean; handleNextEntireScreen: () => void; handleNextApplicationWindow: () => void; handleClose: () => void; } export default function ChooseAppOrScreenOverlay( props: ChooseAppOrScreenOverlayProps ) { const classes = useStyles(); return (
{props.isEntireScreenToShareChosen ? (

Select Entire Screen to Share

) : (

Select App Window to Share

)}
{ props.handleNextEntireScreen(); props.handleClose(); }} handleNextApplicationWindow={() => { props.handleNextApplicationWindow(); props.handleClose(); }} />
); }