import React from 'react'; import {StyleSheet, Text, View} from 'react-native'; import {SocialIcon} from '..'; interface SocialMediaInfoProps { fullname: string; type: string; handle?: string; } const SocialMediaInfo: React.FC = ({ fullname, type, handle, }) => { return ( {handle && type !== 'Facebook' ? ( @{handle} ) : ( <> )} {fullname} ); }; const styles = StyleSheet.create({ container: { alignItems: 'center', paddingBottom: 40, }, handle: { color: 'white', fontSize: 12, }, name: { color: 'white', fontWeight: 'bold', fontSize: 20, paddingLeft: 5, }, icon: { width: 20, height: 20, }, row: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', padding: 10, }, }); export default SocialMediaInfo;