owncast/web/components/Follower.tsx

20 lines
411 B
TypeScript
Raw Normal View History

2022-05-03 23:17:05 +02:00
import { Avatar, Comment } from 'antd';
import React from 'react';
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}
/>
);
}