import React from 'react' import { compute, Contract } from '../lib/firebase/contracts' import { Col } from './layout/col' import { Spacer } from './layout/spacer' import { ContractProbGraph } from './contract-prob-graph' import { ContractDetails } from './contracts-list' export const ContractOverview = (props: { contract: Contract className?: string }) => { const { contract, className } = props const { probPercent } = compute(contract) return (
{contract.question}
{!contract.resolution && {probPercent}
chance
}
{contract.description}
) }