import { useEffect } from 'react'; import styled from 'styled-components'; import { SessionTheme } from '../themes/SessionTheme'; import { switchThemeTo } from '../themes/switchTheme'; import { SessionToastContainer } from './SessionToastContainer'; import { Flex } from './basic/Flex'; import { SessionButtonType } from './basic/SessionButton'; import { CopyToClipboardButton } from './buttons/CopyToClipboardButton'; const StyledContent = styled(Flex)` background-color: var(--background-primary-color); color: var(--text-primary-color); text-align: center; font-family: var(--font-default); font-size: var(--font-size-sm); height: 100%; width: 100%; a { color: var(--text-primary-color); } img:first-child { filter: brightness(0) saturate(100%) invert(75%) sepia(84%) saturate(3272%) hue-rotate(103deg) brightness(106%) contrast(103%); margin: var(--margins-2xl) 0 var(--margins-lg); } img:nth-child(2) { filter: var(--session-logo-text-current-filter); margin-bottom: var(--margins-xl); } .session-button { font-size: var(--font-size-sm); font-weight: 400; min-height: var(--font-size-sm); font-size: var(--font-size-sm); margin-bottom: var(--margins-xs); } `; export const AboutView = () => { // Add debugging metadata - environment if not production, app instance name const environmentStates = []; if (window.getEnvironment() !== 'production') { environmentStates.push(window.getEnvironment()); } if (window.getAppInstance()) { environmentStates.push(window.getAppInstance()); } const versionInfo = `v${window.getVersion()}`; const commitInfo = `Commit ${window.getCommitHash()}` || ''; const osInfo = `${window.getOSRelease()}`; useEffect(() => { if (window.theme) { void switchThemeTo({ theme: window.theme, usePrimaryColor: true, }); } }, []); return ( session brand icon session brand text {environmentStates.length ? ( ) : null} https://getsession.org
{window.i18n('privacyPolicy')} {window.i18n('termsOfService')}
); };