import React from 'react'; import { Input, Label, Select, Button, ButtonGroup } from '@ohif/ui'; import { useTranslation } from 'react-i18next'; export const ROI_STAT = 'roi_stat'; const RANGE = 'range'; const options = [ { value: ROI_STAT, label: 'Max', placeHolder: 'Max' }, { value: RANGE, label: 'Range', placeHolder: 'Range' }, ]; function ROIThresholdConfiguration({ config, dispatch, runCommand }) { const { t } = useTranslation('ROIThresholdConfiguration'); return (
{ dispatch({ type: 'setWeight', payload: { weight: e.target.value, }, }); }} /> )} {config.strategy !== ROI_STAT && (
{ dispatch({ type: 'setThreshold', payload: { ctLower: e.target.value, }, }); }} /> { dispatch({ type: 'setThreshold', payload: { ctUpper: e.target.value, }, }); }} />
{ dispatch({ type: 'setThreshold', payload: { ptLower: e.target.value, }, }); }} /> { dispatch({ type: 'setThreshold', payload: { ptUpper: e.target.value, }, }); }} />
)}
); } export default ROIThresholdConfiguration;