import React from 'react'; import { Text } from 'react-native-elements'; import { I18nManager, StyleSheet, TouchableOpacity, View } from 'react-native'; import { useTheme } from './themes'; interface WalletToImportProp { title: string; subtitle: string; active: boolean; onPress: () => void; } const WalletToImport: React.FC = ({ title, subtitle, active, onPress }) => { const { colors } = useTheme(); const stylesHooks = StyleSheet.create({ root: { borderColor: active ? colors.newBlue : colors.buttonDisabledBackgroundColor, backgroundColor: colors.buttonDisabledBackgroundColor, }, title: { color: colors.newBlue, writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr', }, subtitle: { color: colors.alternativeTextColor, writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr', }, }); return ( {title} {subtitle} ); }; const styles = StyleSheet.create({ root: { alignItems: 'stretch', borderRadius: 8, borderWidth: 1.5, flexDirection: 'column', justifyContent: 'center', marginBottom: 8, minWidth: '100%', paddingHorizontal: 16, paddingVertical: 10, }, title: { fontWeight: 'bold', fontSize: 15, paddingBottom: 3, }, subtitle: { fontSize: 13, fontWeight: '500', }, }); export default WalletToImport;