2022-05-03 23:17:05 +02:00
|
|
|
import { Avatar, Comment } from 'antd';
|
|
|
|
import React from 'react';
|
2022-04-28 23:36:05 +02:00
|
|
|
import { Follower } from '../interfaces/follower';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
follower: Follower;
|
|
|
|
}
|
|
|
|
|
2022-05-03 23:17:05 +02:00
|
|
|
export default function SingleFollower(props: Props) {
|
|
|
|
const { follower } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Comment
|
|
|
|
author={follower.username}
|
|
|
|
avatar={<Avatar src={follower.image} alt="Han Solo" />}
|
|
|
|
content={follower.name}
|
|
|
|
/>
|
|
|
|
);
|
2022-04-28 23:36:05 +02:00
|
|
|
}
|