predikt/oracle/web/components/progress-bar.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

23 lines
598 B
TypeScript

import { Col } from 'web/components/layout/col'
import clsx from 'clsx'
import { Row } from './layout/row'
export const ProgressBar = (props: {
value: number
max: number
className?: string
}) => {
const { value, max, className } = props
const percentage = Math.min((value / max) * 100, 100)
return (
<Row className={'w-full justify-center'}>
<Col className={clsx('bg-ink-200 h-2.5 w-full rounded-full', className)}>
<div
className={'bg-primary-500 h-full rounded-full'}
style={{ width: `${percentage}%` }}
/>
</Col>
</Row>
)
}