predikt/oracle/web/components/user/user-handles.tsx
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

61 lines
1.8 KiB
TypeScript

import { LinkIcon } from '@heroicons/react/solid'
import { Row } from '../layout/row'
import clsx from 'clsx'
export function UserHandles(props: {
website?: string | null
twitterHandle?: string | null
discordHandle?: string | null
className?: string
}) {
const { website, twitterHandle, discordHandle, className } = props
return (
<Row
className={clsx(
'text-ink-400 flex-wrap items-center gap-2 sm:gap-4',
className
)}
>
{website && (
<a
target={'_blank'}
href={
'https://' + website.replace('http://', '').replace('https://', '')
}
>
<Row className="items-center gap-1">
<LinkIcon className="h-4 w-4" />
<span className="text-ink-400 text-sm">{website}</span>
</Row>
</a>
)}
{twitterHandle && (
<a
target={'_blank'}
href={`https://twitter.com/${twitterHandle
.replace('https://www.twitter.com/', '')
.replace('https://twitter.com/', '')
.replace('www.twitter.com/', '')
.replace('twitter.com/', '')
.replace(/^@/, '')}`}
>
<Row className="items-center gap-1">
<img src="/twitter-logo.svg" className="h-4 w-4" alt="Twitter" />
<span className="text-ink-400 text-sm">{twitterHandle}</span>
</Row>
</a>
)}
{discordHandle && (
<a target={'_blank'} href="https://discord.com/invite/eHQBNBqXuh">
<Row className="items-center gap-1">
<img src="/discord-logo.svg" className="h-4 w-4" alt="Discord" />
<span className="text-ink-400 text-sm">{discordHandle}</span>
</Row>
</a>
)}
</Row>
)
}