BlueWallet/components/icons/TransactionOffchainIcon.tsx
Marcos Rodriguez Velez 40810141b8 REF: Icons to TSX
2024-08-27 21:43:54 -04:00

40 lines
971 B
TypeScript

import React from 'react';
import { StyleSheet, View, ViewStyle } from 'react-native';
import { Icon } from '@rneui/themed';
import { useTheme } from '../themes';
const styles = StyleSheet.create({
boxIncoming: {
position: 'relative',
} as ViewStyle,
ballOutgoingWithoutRotate: {
width: 30,
height: 30,
borderRadius: 15,
} as ViewStyle,
icon: {
left: 0,
marginTop: 6,
},
});
const TransactionOffchainIcon: React.FC = () => {
const { colors } = useTheme();
const stylesHooks = StyleSheet.create({
ballOutgoingWithoutRotate: {
backgroundColor: colors.ballOutgoing,
},
});
return (
<View style={styles.boxIncoming}>
<View style={[styles.ballOutgoingWithoutRotate, stylesHooks.ballOutgoingWithoutRotate]}>
<Icon name="bolt" size={16} type="font-awesome" color={colors.outgoingForegroundColor} iconStyle={styles.icon} />
</View>
</View>
);
};
export default TransactionOffchainIcon;