1 import { Component } from 'inferno';
2 import { Link } from 'inferno-router';
3 import { UserView } from '../interfaces';
4 import { pictrsAvatarThumbnail, showAvatars } from '../utils';
11 interface UserListingProps {
12 user: UserView | UserOther;
15 export class UserListing extends Component<UserListingProps, any> {
16 constructor(props: any, context: any) {
17 super(props, context);
21 let user = this.props.user;
23 <Link className="text-body font-weight-bold" to={`/u/${user.name}`}>
24 {user.avatar && showAvatars() && (
28 src={pictrsAvatarThumbnail(user.avatar)}
29 class="rounded-circle mr-2"
32 <span>{user.name}</span>