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