signal-desktop/ts/windows/about/app.tsx
2024-11-05 18:05:24 -08:00

25 lines
705 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import ReactDOM from 'react-dom';
import { About } from '../../components/About';
import { i18n } from '../sandboxedInit';
import { strictAssert } from '../../util/assert';
const { AboutWindowProps } = window.Signal;
strictAssert(AboutWindowProps, 'window values not provided');
ReactDOM.render(
<About
closeAbout={() => window.SignalContext.executeMenuRole('close')}
appEnv={AboutWindowProps.appEnv}
platform={AboutWindowProps.platform}
arch={AboutWindowProps.arch}
i18n={i18n}
version={window.SignalContext.getVersion()}
/>,
document.getElementById('app')
);