blob: fcff8c69dc838bc5a59c19b3eca76a24ac2cf1c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import * as React from "react";
import { getHttpUserClient } from "@/http/user";
export interface UserAvatarProps
extends React.ImgHTMLAttributes<HTMLImageElement> {
username: string;
}
const UserAvatar: React.FC<UserAvatarProps> = ({ username, ...otherProps }) => {
return (
<img
src={getHttpUserClient().generateAvatarUrl(username)}
{...otherProps}
/>
);
};
export default UserAvatar;
|