import React, { ReactNode } from 'react'; import { StyleProp, View, ViewStyle } from 'react-native'; import Divider from '../../components/Divider'; import Text from '../../components/Text'; import createStyleSheet from '../../styles/createStyleSheet'; import useUIKitTheme from '../../theme/useUIKitTheme'; import Avatar from '../Avatar'; type Props = { uri: string; username: string; button?: ReactNode; bodyLabel: string; body: string; containerStyle?: StyleProp; }; const ProfileCard = ({ uri, username, bodyLabel, body, button, containerStyle }: Props) => { const { colors } = useUIKitTheme(); const color = colors.ui.profileCard.default.none; return ( {username} {button && {button}} {bodyLabel} {body} ); }; const styles = createStyleSheet({ container: { paddingTop: 32, width: '100%', }, profileContainer: { alignItems: 'center', paddingHorizontal: 16, marginBottom: 24, }, profileAvatar: { marginBottom: 8, }, profileInfoContainer: { alignItems: 'flex-start', padding: 16, }, profileInfoBodyLabel: { marginBottom: 4, }, messageButtonArea: { marginHorizontal: 24, marginBottom: 24, }, }); export default ProfileCard;