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

34 lines
1.0 KiB
TypeScript

import clsx from 'clsx'
import { ReactNode } from 'react'
export function PillButton(props: {
selected: boolean
onSelect: () => void
xs?: boolean
className?: string
children: ReactNode
type?: 'mana' | 'sweepies'
}) {
const { children, selected, onSelect, xs, className, type = 'mana' } = props
return (
<button
className={clsx(
'flex h-6 cursor-pointer select-none flex-row items-center whitespace-nowrap rounded-full px-2 outline-none',
xs ? 'text-xs' : 'text-sm',
type === 'sweepies'
? selected
? 'bg-amber-600 text-white hover:bg-amber-600'
: 'text-ink-600 bg-amber-500/10 hover:bg-amber-500/30 dark:bg-amber-500/20 dark:hover:bg-amber-500/30'
: selected
? 'bg-primary-500 hover:bg-primary-600 focus-visible:bg-primary-600 text-white'
: 'bg-ink-200 hover:bg-ink-300 focus-visible:bg-ink-300 text-ink-600 dark:bg-ink-300 dark:hover:bg-ink-400',
className
)}
onClick={onSelect}
>
{children}
</button>
)
}