2023-01-03 11:55:46 -08:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-09-16 11:52:56 -04:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-09-17 18:24:21 -04:00
|
|
|
import React from 'react';
|
2022-06-08 15:00:32 -07:00
|
|
|
|
2021-10-26 14:15:33 -05:00
|
|
|
import type { LocalizerType } from '../types/Util';
|
2021-09-17 18:24:21 -04:00
|
|
|
import { useEscapeHandling } from '../hooks/useEscapeHandling';
|
2021-09-16 11:52:56 -04:00
|
|
|
|
|
|
|
export type PropsType = {
|
|
|
|
closeAbout: () => unknown;
|
|
|
|
environment: string;
|
|
|
|
i18n: LocalizerType;
|
|
|
|
version: string;
|
|
|
|
};
|
|
|
|
|
2022-11-17 16:45:19 -08:00
|
|
|
export function About({
|
2021-09-16 11:52:56 -04:00
|
|
|
closeAbout,
|
|
|
|
environment,
|
2023-03-14 11:55:31 -04:00
|
|
|
i18n,
|
|
|
|
version,
|
2022-11-17 16:45:19 -08:00
|
|
|
}: PropsType): JSX.Element {
|
2021-09-17 18:24:21 -04:00
|
|
|
useEscapeHandling(closeAbout);
|
2021-09-16 11:52:56 -04:00
|
|
|
|
|
|
|
return (
|
2024-01-16 22:32:38 +01:00
|
|
|
<div className="About">
|
|
|
|
<div className="module-splash-screen">
|
|
|
|
<div className="module-splash-screen__logo module-img--150" />
|
2021-09-16 11:52:56 -04:00
|
|
|
|
2024-01-16 22:32:38 +01:00
|
|
|
<div className="version">{version}</div>
|
|
|
|
<div className="environment">{environment}</div>
|
|
|
|
<div>
|
|
|
|
<a href="https://signal.org">signal.org</a>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div>
|
|
|
|
<a
|
|
|
|
className="acknowledgments"
|
|
|
|
href="https://github.com/signalapp/Signal-Desktop/blob/main/ACKNOWLEDGMENTS.md"
|
|
|
|
>
|
|
|
|
{i18n('icu:softwareAcknowledgments')}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a className="privacy" href="https://signal.org/legal">
|
|
|
|
{i18n('icu:privacyPolicy')}
|
|
|
|
</a>
|
2021-09-16 11:52:56 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-16 22:32:38 +01:00
|
|
|
</div>
|
2021-09-16 11:52:56 -04:00
|
|
|
);
|
2022-11-17 16:45:19 -08:00
|
|
|
}
|