blob: 72b5d2d1875de6be8d2b4e904582a1cf9144693f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import React from 'react';
import { UserType } from './Types';
export default function Avatar(props) {
return (
<div className="msg-avatar"><a href={`/${props.user.uname}/`}>
<img src={`//i.juick.com/a/${props.user.uid}.png`} alt={`${props.user.uname}`} /></a>
</div>
);
}
Avatar.propTypes = {
user: UserType
}
|