Mark @v with a (Bot) label

This commit is contained in:
Austin Chen 2022-10-06 14:20:35 -04:00
parent edbd0feb37
commit 853e3e4896

View File

@ -34,6 +34,17 @@ export function UserLink(props: {
)}
>
{shortName}
{BOT_USERNAMES.includes(username) && <BotBadge />}
</SiteLink>
)
}
const BOT_USERNAMES = ['v']
function BotBadge() {
return (
<span className="ml-1.5 inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-800">
Bot
</span>
)
}