// Copyright 2023 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import ReactDOM from 'react-dom'; import { CallingScreenSharingController } from '../../components/CallingScreenSharingController'; import { i18n } from '../sandboxedInit'; import { strictAssert } from '../../util/assert'; import { drop } from '../../util/drop'; import { parseEnvironment, setEnvironment } from '../../environment'; const { ScreenShareWindowProps } = window.Signal; strictAssert(ScreenShareWindowProps, 'window values not provided'); setEnvironment( parseEnvironment(window.SignalContext.getEnvironment()), window.SignalContext.isTestOrMockEnvironment() ); function onCloseController(): void { drop(window.SignalContext.executeMenuRole('close')); } function render() { // Pacify typescript strictAssert(ScreenShareWindowProps, 'window values not provided'); ReactDOM.render(