Spaces:
Running
Running
Download assets/FollowerAvatar-syaRlmcQ.js from huggingface/paperswithcode: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/FollowerAvatar-syaRlmcQ.js
- Command line
-
hf download hf://spaces/huggingface/paperswithcode/assets/FollowerAvatar-syaRlmcQ.js
-
curl -L -o FollowerAvatar-syaRlmcQ.js https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/FollowerAvatar-syaRlmcQ.js
457 Bytes
| import{i as s,j as r,n as l}from"./index-BASp1Jlg.js";function n({person:t,size:a}){const[e,i]=s.useState(!1);return e?r.jsx("span",{className:"topic-avatar home-topic-avatar-initial",title:`@${t.username}`,style:{width:a,height:a,fontSize:a*.45},children:t.username.charAt(0).toUpperCase()}):r.jsx("img",{className:"topic-avatar",src:l(t.avatar_url)??void 0,alt:"",title:`@${t.username}`,width:a,height:a,loading:"lazy",onError:()=>i(!0)})}export{n as F}; | |