import React from 'react'; import {StyleSheet, Text, View} from 'react-native'; import {ScreenType} from '../../types'; import {SocialIcon} from '../common'; import {handleOpenSocialUrlOnBrowser} from '../../utils'; interface SocialMediaInfoProps { fullname: string; type: string; handle?: string; } const SocialMediaInfo: React.FC = ({ fullname, type, handle, }) => { return ( {handle && type !== 'Facebook' ? ( { handleOpenSocialUrlOnBrowser(handle, type); }}> {' '} @{handle}{' '} ) : ( <> )} { handleOpenSocialUrlOnBrowser(handle, type); }}> {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, borderRadius: 20, }, row: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', padding: 10, }, }); export default SocialMediaInfo;