import React, { useState } from 'react'; import classNames from 'classnames'; import Icon from '../Icon'; import InputRange from '../InputRange'; import CheckBox from '../CheckBox'; import InputNumber from '../InputNumber'; const ActiveSegmentationConfig = ({ config, setRenderOutline, setOutlineOpacityActive, setOutlineWidthActive, setRenderFill, setFillAlpha, }) => { return (
Active
Opacity
Size
); }; const InactiveSegmentationConfig = ({ config, setRenderInactiveSegmentations, setFillAlphaInactive, }) => { return (
Opacity
); }; const SegmentationConfig = ({ segmentationConfig, setFillAlpha, setFillAlphaInactive, setOutlineWidthActive, setOutlineOpacityActive, setRenderFill, setRenderInactiveSegmentations, setRenderOutline, }) => { const { initialConfig } = segmentationConfig; const [isMinimized, setIsMinimized] = useState(true); return (
{ evt.stopPropagation(); setIsMinimized(!isMinimized); }} > {'Segmentation Appearance'}
{/* active segmentation */} {!isMinimized && (
{/* A small line */}
{/* inactive segmentation */}
setIsMinimized(!isMinimized)} className="flex items-center cursor-pointer pl-2 pb-[9px]" > {'Inactive Segmentations'}
)}
); }; SegmentationConfig.propTypes = {}; export default SegmentationConfig;