import Icon from '@components/Icon' import { MenuContainer, MenuRow } from '@components/Menu' import openLink from '@components/openLink' import { useNavigation } from '@react-navigation/native' import { getAccountStorage, useGlobalStorage } from '@utils/storage/actions' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import Constants from 'expo-constants' import * as Linking from 'expo-linking' import React from 'react' import { useTranslation } from 'react-i18next' import { Platform } from 'react-native' const SettingsTooot: React.FC = () => { const navigation = useNavigation() const { colors } = useTheme() const { t } = useTranslation('screenTabs') const [accountActive] = useGlobalStorage.string('account.active') const [expoToken] = useGlobalStorage.string('app.expo_token') return ( } iconBack='chevron-right' onPress={() => Linking.openURL('https://www.buymeacoffee.com/xmflsct')} /> } iconBack='chevron-right' onPress={() => Linking.openURL('https://feedback.tooot.app/feature-requests')} /> } iconBack='chevron-right' onPress={async () => { if (accountActive) { navigation.navigate('Screen-Compose', { type: 'conversation', accts: ['tooot@xmflsct.com'], visibility: 'direct', text: '[' + `${Platform.OS}/${Platform.Version}` + ' - ' + (Constants.expoConfig?.version ? `t/${Constants.expoConfig?.version}` : '') + ' - ' + `m/${getAccountStorage.string('version')}` + ' - ' + (expoToken?.length ? `e/${expoToken.replace(/^ExponentPushToken\[/, '').replace(/\]$/, '')}` : '') + ']' }) } else { openLink('https://social.xmflsct.com/@tooot') } }} /> ) } export default SettingsTooot