+ {/* 头像:优先使用传入头像,失败则退回到首字母头像 */}
+

{
+ const target = e.currentTarget as HTMLImageElement
+ target.onerror = null
+ target.src = `https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(authorName)}`
+ }}
+ />
+ {tweetUrl ? (
+
+ {authorName} ({handle})
+
+ ) : (
+
+ {authorName} ({handle})
+
+ )}
+
+