import React from 'react';
import { Input, 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 (
{config.strategy === ROI_STAT && (
{
dispatch({
type: 'setWeight',
payload: e.target.value,
});
}}
/>
)}
{config.strategy !== ROI_STAT && (
{
dispatch({
type: 'setThreshold',
payload: {
lower: e.target.value,
},
});
}}
/>
{
dispatch({
type: 'setThreshold',
payload: {
upper: e.target.value,
},
});
}}
/>
)}
);
}
export default ROIThresholdConfiguration;