owncast/web/components/Follower.tsx
2022-05-04 08:56:47 -07:00

19 lines
411 B
TypeScript

import { Avatar, Comment } from 'antd';
import React from 'react';
import { Follower } from '../interfaces/follower';
interface Props {
follower: Follower;
}
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}
/>
);
}