File size: 392 Bytes
7a2a8fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { ReactComponent as NothingIcon } from '@/assets/svg/nothing.svg';
import { Avatar } from 'antd';
const GraphAvatar = ({ avatar }: { avatar?: string | null }) => {
return (
<div>
{avatar ? (
<Avatar size={40} icon={<NothingIcon />} src={avatar} />
) : (
<NothingIcon width={40} height={30} />
)}
</div>
);
};
export default GraphAvatar;
|