2022-01-03 18:56:02 +00:00
|
|
|
export function OutcomeLabel(props: {
|
2022-02-17 23:00:19 +00:00
|
|
|
outcome: 'YES' | 'NO' | 'CANCEL' | 'MKT' | string
|
2022-01-03 18:56:02 +00:00
|
|
|
}) {
|
|
|
|
const { outcome } = props
|
|
|
|
|
|
|
|
if (outcome === 'YES') return <YesLabel />
|
|
|
|
if (outcome === 'NO') return <NoLabel />
|
2022-01-30 21:51:30 +00:00
|
|
|
if (outcome === 'MKT') return <ProbLabel />
|
2022-02-17 23:00:19 +00:00
|
|
|
if (outcome === 'CANCEL') return <CancelLabel />
|
|
|
|
return <AnswerNumberLabel number={outcome} />
|
2022-01-03 18:56:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function YesLabel() {
|
|
|
|
return <span className="text-primary">YES</span>
|
|
|
|
}
|
|
|
|
|
|
|
|
export function NoLabel() {
|
|
|
|
return <span className="text-red-400">NO</span>
|
|
|
|
}
|
|
|
|
|
|
|
|
export function CancelLabel() {
|
|
|
|
return <span className="text-yellow-400">N/A</span>
|
|
|
|
}
|
|
|
|
|
2022-01-30 21:51:30 +00:00
|
|
|
export function ProbLabel() {
|
|
|
|
return <span className="text-blue-400">PROB</span>
|
|
|
|
}
|
2022-02-17 23:00:19 +00:00
|
|
|
|
|
|
|
export function AnswerNumberLabel(props: { number: string }) {
|
|
|
|
return <span className="text-primary">#{props.number}</span>
|
|
|
|
}
|