signal-desktop/ts/windows/about/app.tsx

26 lines
705 B
TypeScript
Raw Normal View History

2023-03-14 15:55:31 +00:00
// 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';
2023-03-14 15:55:31 +00:00
import { strictAssert } from '../../util/assert';
const { AboutWindowProps } = window.Signal;
2023-03-14 15:55:31 +00:00
strictAssert(AboutWindowProps, 'window values not provided');
2023-03-14 15:55:31 +00:00
ReactDOM.render(
<About
closeAbout={() => window.SignalContext.executeMenuRole('close')}
2024-11-06 02:05:24 +00:00
appEnv={AboutWindowProps.appEnv}
platform={AboutWindowProps.platform}
arch={AboutWindowProps.arch}
i18n={i18n}
version={window.SignalContext.getVersion()}
2023-03-14 15:55:31 +00:00
/>,
document.getElementById('app')
);