import React, { useCallback, useMemo } from 'react'; import { StyleSheet, GestureResponderEvent, View } from 'react-native'; import Icon from './Icon'; import { useTheme } from './themes'; import ToolTipMenu from './TooltipMenu'; import { CommonToolTipActions } from '../typings/CommonToolTipActions'; import loc from '../loc'; import { useExtendedNavigation } from '../hooks/useExtendedNavigation'; type AddWalletButtonProps = { onPress: (event: GestureResponderEvent) => void; }; const AddWalletButton: React.FC = ({ onPress }) => { const { colors } = useTheme(); const navigation = useExtendedNavigation(); const onPressMenuItem = useCallback( (action: string) => { switch (action) { case CommonToolTipActions.ImportWallet.id: navigation.navigate('AddWalletRoot', { screen: 'ImportWallet' }); break; default: break; } }, [navigation], ); const actions = useMemo(() => [CommonToolTipActions.ImportWallet], []); return ( ); }; export default AddWalletButton; const styles = StyleSheet.create({ ball: { width: 32, height: 32, borderRadius: 16, alignItems: 'center', justifyContent: 'center', }, iconContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', }, });