mirror of
https://github.com/rustfs/console.git
synced 2026-09-17 16:43:52 +08:00
23 lines
573 B
TypeScript
23 lines
573 B
TypeScript
"use client"
|
|
|
|
import { Button } from "@/components/ui/button"
|
|
import { RiTwitterXLine } from "@remixicon/react"
|
|
import { getThemeManifest } from "@/lib/theme/manifest"
|
|
import { withUtm } from "@/lib/utm"
|
|
|
|
export function LinksX() {
|
|
const x = getThemeManifest().links.x
|
|
if (!x) return null
|
|
|
|
return (
|
|
<Button
|
|
variant="ghost"
|
|
size="icon"
|
|
nativeButton={false}
|
|
render={<a href={withUtm(x, "top-nav")} target="_blank" rel="noopener noreferrer" aria-label="X" />}
|
|
>
|
|
<RiTwitterXLine className="size-4" aria-hidden />
|
|
</Button>
|
|
)
|
|
}
|