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

47 lines
1.1 KiB
TypeScript

import { InformationCircleIcon } from '@heroicons/react/outline'
import { Tooltip } from './tooltip'
import clsx from 'clsx'
import { Placement } from '@floating-ui/react'
export function InfoTooltip(props: {
text: string | React.ReactNode
className?: string
children?: React.ReactNode
size?: 'sm' | 'md' | 'lg'
tooltipParams?: {
className?: string
placement?: Placement
}
}) {
const { text, className, children, size, tooltipParams } = props
return (
<Tooltip
className={clsx('inline-block', tooltipParams?.className)}
text={text}
placement={tooltipParams?.placement}
>
{children ? (
<span
className={clsx(
'border-ink-600 cursor-help border-b border-dotted',
className
)}
>
{children}
</span>
) : (
<InformationCircleIcon
className={clsx(
'text-ink-500 -mb-1',
className,
size === 'sm' && 'h-4 w-4',
size === 'md' && 'h-5 w-5',
size === 'lg' && 'h-6 w-6',
!size && 'h-5 w-5'
)}
/>
)}
</Tooltip>
)
}