Fill out the follower component

This commit is contained in:
Gabe Kangas
2022-05-03 14:17:05 -07:00
parent 2cfb336411
commit 008f607cf7
8 changed files with 70 additions and 26 deletions

View File

@ -1,9 +1,19 @@
import { Avatar, Comment } from 'antd';
import React from 'react';
import { Follower } from '../interfaces/follower';
interface Props {
follower: Follower;
}
export default function FollowerCollection(props: Props) {
return <div>This is a single follower</div>;
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}
/>
);
}