chore: add link to profile

This commit is contained in:
2025-05-27 16:15:10 +01:00
parent afb33085b7
commit e3e2986294

View File

@ -14,7 +14,7 @@ export default function Profile({
const profile = useUserProfile(link.id); const profile = useUserProfile(link.id);
const s = size ?? 40; const s = size ?? 40;
return ( return (
<div className="flex gap-2 items-center"> <a className="flex gap-2 items-center" href={`https://snort.social/${link.encode()}`} target="_blank">
<img <img
src={profile?.picture} src={profile?.picture}
width={s} width={s}
@ -28,6 +28,6 @@ export default function Profile({
hexToBech32("npub", link.id).slice(0, 12)} hexToBech32("npub", link.id).slice(0, 12)}
</div> </div>
)} )}
</div> </a>
); );
} }