2023-04-20 21:23:19 +00:00
|
|
|
// 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';
|
|
|
|
|
|
|
|
const { ScreenShareWindowProps } = window.Signal;
|
|
|
|
|
|
|
|
strictAssert(ScreenShareWindowProps, 'window values not provided');
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2023-05-16 19:15:08 +00:00
|
|
|
<div className="App dark-theme">
|
|
|
|
<CallingScreenSharingController
|
|
|
|
i18n={i18n}
|
|
|
|
onCloseController={() => window.SignalContext.executeMenuRole('close')}
|
|
|
|
onStopSharing={ScreenShareWindowProps.onStopSharing}
|
|
|
|
presentedSourceName={ScreenShareWindowProps.presentedSourceName}
|
|
|
|
/>
|
|
|
|
</div>,
|
2023-04-20 21:23:19 +00:00
|
|
|
|
|
|
|
document.getElementById('app')
|
|
|
|
);
|