mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-06 17:28:15 +08:00
first commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,15 @@
|
||||
import type { FC } from 'react';
|
||||
import { Avatar } from 'antd';
|
||||
import type { AvatarProps } from 'antd';
|
||||
import avatarIcon from './assets/avatar.gif';
|
||||
|
||||
interface Props extends AvatarProps {
|
||||
staffName?: string;
|
||||
avatarImg?: string;
|
||||
}
|
||||
|
||||
const TMEAvatar: FC<Props> = ({ avatarImg, ...restProps }) => (
|
||||
<Avatar src={`${avatarImg}`} alt="avatar" icon={<img src={avatarIcon} />} {...restProps} />
|
||||
);
|
||||
|
||||
export default TMEAvatar;
|
||||
Reference in New Issue
Block a user