// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { ExecuteMenuRoleType } from './TitleBarContainer'; import type { LocalizerType } from '../types/Util'; import { TitleBarContainer } from './TitleBarContainer'; import { useEscapeHandling } from '../hooks/useEscapeHandling'; import { useTheme } from '../hooks/useTheme'; export type PropsType = { closeAbout: () => unknown; environment: string; executeMenuRole: ExecuteMenuRoleType; hasCustomTitleBar: boolean; i18n: LocalizerType; version: string; }; export function About({ closeAbout, environment, executeMenuRole, hasCustomTitleBar, i18n, version, }: PropsType): JSX.Element { useEscapeHandling(closeAbout); const theme = useTheme(); return (
{version}
{environment}
signal.org

{i18n('softwareAcknowledgments')}
{i18n('privacyPolicy')}
); }