import React from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native-elements'; import { I18nManager, StyleSheet, TouchableOpacity, View } from 'react-native'; import { useTheme } from '@react-navigation/native'; const WalletToImport = ({ 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', }, }); WalletToImport.propTypes = { title: PropTypes.string, subtitle: PropTypes.string, active: PropTypes.bool, onPress: PropTypes.func, }; export default WalletToImport;