bigbuffet-rw/app/gabsocial/features/edit_profile/components/profile_preview.js
2020-04-22 16:26:44 -05:00

31 lines
983 B
JavaScript

import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { acctFull } from 'gabsocial/utils/accounts';
const ProfilePreview = ({ account }) => (
<div className='card h-card'>
<a target='_blank' rel='noopener' href={account.get('url')}>
<div className='card__img'>
<img alt='' src={account.get('header')} />
</div>
<div className='card__bar'>
<div className='avatar'>
<img alt='' className='u-photo' src={account.get('avatar')} width='48' height='48' />
</div>
<div className='display-name'>
<span style={{ display: 'none' }}>{account.get('username')}</span>
<bdi>
<strong className='emojify p-name'>{account.get('display_name')}</strong>
</bdi>
<span>{acctFull(account)}</span>
</div>
</div>
</a>
</div>
);
ProfilePreview.propTypes = {
account: ImmutablePropTypes.map,
};
export default ProfilePreview;