ragflow / web /src /pages /flow /list /graph-avatar.tsx
balibabu
feat: add GraphAvatar to graph list #918 (#1385)
7a2a8fe
raw
history blame
392 Bytes
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;