blob: 9e8225288beb68222d91c48759c06bcbd0574c1c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 | import 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;
 |