import { Contract } from 'common/contract' import { Bet } from 'common/bet' import { BinaryContractChart } from './binary' import { PseudoNumericContractChart } from './pseudo-numeric' import { ChoiceContractChart } from './choice' import { NumericContractChart } from './numeric' export const ContractChart = (props: { contract: Contract bets: Bet[] height?: number }) => { const { contract } = props switch (contract.outcomeType) { case 'BINARY': return case 'PSEUDO_NUMERIC': return case 'FREE_RESPONSE': case 'MULTIPLE_CHOICE': return case 'NUMERIC': return default: return null } } export { BinaryContractChart, PseudoNumericContractChart, ChoiceContractChart, NumericContractChart, }