mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 15:36:59 +01:00
39 lines
964 B
JavaScript
39 lines
964 B
JavaScript
|
import React from 'react';
|
||
|
import { StyleSheet, View } from 'react-native';
|
||
|
import { Icon } from 'react-native-elements';
|
||
|
import { useTheme } from '@react-navigation/native';
|
||
|
|
||
|
const styles = StyleSheet.create({
|
||
|
boxIncoming: {
|
||
|
position: 'relative',
|
||
|
},
|
||
|
ballIncomingWithoutRotate: {
|
||
|
width: 30,
|
||
|
height: 30,
|
||
|
borderRadius: 15,
|
||
|
},
|
||
|
icon: {
|
||
|
left: 0,
|
||
|
marginTop: 6,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
const TransactionOffchainIncomingIcon = props => {
|
||
|
const { colors } = useTheme();
|
||
|
const stylesHooks = StyleSheet.create({
|
||
|
ballIncomingWithoutRotate: {
|
||
|
backgroundColor: colors.ballReceive,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return (
|
||
|
<View style={styles.boxIncoming}>
|
||
|
<View style={[styles.ballIncomingWithoutRotate, stylesHooks.ballIncomingWithoutRotate]}>
|
||
|
<Icon name="bolt" size={16} type="font-awesome" color={colors.incomingForegroundColor} iconStyle={styles.icon} />
|
||
|
</View>
|
||
|
</View>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default TransactionOffchainIncomingIcon;
|