import React, { useCallback, useMemo } from 'react'; import { StyleSheet, TouchableOpacity } from 'react-native'; import { Icon } from '@rneui/themed'; import { useTheme } from '../themes'; import { useExtendedNavigation } from '../../hooks/useExtendedNavigation'; import loc from '../../loc'; import ToolTipMenu from '../TooltipMenu'; import { CommonToolTipActions } from '../../typings/CommonToolTipActions'; const SettingsButton = () => { const { colors } = useTheme(); const { navigate } = useExtendedNavigation(); const onPress = () => { navigate('Settings'); }; const onPressMenuItem = useCallback( (menuItem: string) => { switch (menuItem) { case CommonToolTipActions.ManageWallet.id: navigate('ManageWallets'); break; default: break; } }, [navigate], ); const actions = useMemo(() => [CommonToolTipActions.ManageWallet], []); return ( ); }; export default SettingsButton; const style = StyleSheet.create({ buttonStyle: { width: 30, height: 30, borderRadius: 15, justifyContent: 'center', alignContent: 'center', }, });