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

43 lines
1.0 KiB
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,
ballIncoming: {
width: 30,
height: 30,
borderRadius: 15,
transform: [{ rotate: '-45deg' }],
justifyContent: 'center',
} as ViewStyle,
icon: {
left: 0,
top: 0,
transform: [{ rotate: '-45deg' }],
},
});
const TransactionOnchainIcon: React.FC = () => {
const { colors } = useTheme();
const stylesBlueIconHooks = StyleSheet.create({
ballIncoming: {
backgroundColor: colors.ballReceive,
},
});
return (
<View style={styles.boxIncoming}>
<View style={[styles.ballIncoming, stylesBlueIconHooks.ballIncoming]}>
<Icon name="link" size={16} type="font-awesome" color={colors.incomingForegroundColor} iconStyle={styles.icon} />
</View>
</View>
);
};
export default TransactionOnchainIcon;