2022-07-12 04:29:58 +03:00
|
|
|
import { Avatar, Col, Row } from 'antd';
|
|
|
|
import React from 'react';
|
2022-09-03 21:38:52 +03:00
|
|
|
import { Follower } from '../../../../interfaces/follower';
|
|
|
|
import s from './SingleFollower.module.scss';
|
2022-07-12 04:29:58 +03:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
follower: Follower;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function SingleFollower(props: Props) {
|
|
|
|
const { follower } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={s.follower}>
|
|
|
|
<a href={follower.link} target="_blank" rel="noreferrer">
|
|
|
|
<Row wrap={false}>
|
|
|
|
<Col span={6}>
|
|
|
|
<Avatar src={follower.image} alt="Avatar" className={s.avatar}>
|
|
|
|
<img src="/logo" alt="Logo" className={s.placeholder} />
|
|
|
|
</Avatar>
|
|
|
|
</Col>
|
|
|
|
<Col>
|
|
|
|
<Row>{follower.name}</Row>
|
|
|
|
<Row className={s.account}>{follower.username}</Row>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|