import React, { useCallback, useMemo } from 'react'; import { StyleSheet, TouchableOpacity, GestureResponderEvent } from 'react-native'; import { Icon } from '@rneui/themed'; import { useTheme } from './themes'; import ToolTipMenu from './TooltipMenu'; import { CommonToolTipActions } from '../typings/CommonToolTipActions'; import loc from '../loc'; import { navigationRef } from '../NavigationService'; type AddWalletButtonProps = { onPress?: (event: GestureResponderEvent) => void; }; const styles = StyleSheet.create({ ball: { width: 30, height: 30, borderRadius: 15, justifyContent: 'center', alignContent: 'center', }, }); const AddWalletButton: React.FC = ({ onPress }) => { const { colors } = useTheme(); const stylesHook = StyleSheet.create({ ball: { backgroundColor: colors.buttonBackgroundColor, }, }); const onPressMenuItem = useCallback((action: string) => { switch (action) { case CommonToolTipActions.ImportWallet.id: navigationRef.current?.navigate('AddWalletRoot', { screen: 'ImportWallet' }); break; default: break; } }, []); const actions = useMemo(() => [CommonToolTipActions.ImportWallet], []); return ( ); }; export default AddWalletButton;