import { ipcRenderer, shell } from 'electron'; import React from 'react'; import { SessionButtonColor, SessionButtonType } from '../../basic/SessionButton'; import { SessionSettingButtonItem } from '../SessionSettingListItem'; export const SettingsCategoryHelp = (props: { hasPassword: boolean | null }) => { if (props.hasPassword !== null) { return ( <> void shell.openExternal('https://getsession.org/survey')} buttonColor={SessionButtonColor.Primary} buttonType={SessionButtonType.Square} buttonText={window.i18n('goToOurSurvey')} /> void shell.openExternal('https://crowdin.com/project/session-desktop/')} buttonColor={SessionButtonColor.Primary} buttonType={SessionButtonType.Square} buttonText={window.i18n('translation')} /> { ipcRenderer.send('show-debug-log'); }} buttonColor={SessionButtonColor.Primary} buttonType={SessionButtonType.Square} buttonText={window.i18n('showDebugLog')} /> ); } return null; };