BlueWallet/components/icons/TransactionOutgoingIcon.tsx

38 lines
940 B
TypeScript
Raw Normal View History

2022-01-28 14:13:53 +03:00
import React from 'react';
2024-08-27 21:43:54 -04:00
import { StyleSheet, View, ViewStyle } from 'react-native';
2024-06-12 12:46:44 -04:00
import { Icon } from '@rneui/themed';
2024-05-20 10:54:13 +01:00
2023-10-23 21:28:44 -04:00
import { useTheme } from '../themes';
2022-01-28 14:13:53 +03:00
const styles = StyleSheet.create({
boxIncoming: {
position: 'relative',
2024-08-27 21:43:54 -04:00
} as ViewStyle,
2022-01-28 14:13:53 +03:00
ballOutgoing: {
width: 30,
height: 30,
borderRadius: 15,
transform: [{ rotate: '225deg' }],
justifyContent: 'center',
2024-08-27 21:43:54 -04:00
} as ViewStyle,
2022-01-28 14:13:53 +03:00
});
2024-08-27 21:43:54 -04:00
const TransactionOutgoingIcon: React.FC = () => {
2022-01-28 14:13:53 +03:00
const { colors } = useTheme();
const stylesBlueIconHooks = StyleSheet.create({
ballOutgoing: {
backgroundColor: colors.ballOutgoing,
},
});
return (
<View style={styles.boxIncoming}>
<View style={[styles.ballOutgoing, stylesBlueIconHooks.ballOutgoing]}>
<Icon name="arrow-down" size={16} type="font-awesome" color={colors.outgoingForegroundColor} />
</View>
</View>
);
};
export default TransactionOutgoingIcon;