import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { Icon } from '@rneui/themed'; import loc from '../loc'; interface Props { handleDismiss: () => void; } const WatchOnlyWarning: React.FC = ({ handleDismiss }) => { return ( {loc.transactions.watchOnlyWarningTitle} {loc.transactions.watchOnlyWarningDescription} ); }; const styles = StyleSheet.create({ container: { backgroundColor: '#fc990e', padding: 16, margin: 16, borderRadius: 8, position: 'relative', }, dismissButton: { position: 'absolute', top: 8, right: 8, backgroundColor: 'black', borderRadius: 15, width: 30, height: 30, justifyContent: 'center', alignItems: 'center', zIndex: 1, }, content: { alignItems: 'center', }, title: { color: 'white', fontWeight: 'bold', marginBottom: 8, marginTop: 8, }, description: { color: 'white', textAlign: 'center', }, }); export default WatchOnlyWarning;