import React from 'react'; import { useTranslation } from 'react-i18next'; import { Tabs, TabsList, TabsTrigger } from '../Tabs'; import { Slider } from '../Slider'; import { Icons } from '../Icons'; import { Switch } from '../Switch'; import { Label } from '../Label'; import { Input } from '../Input'; import { useSegmentationTableContext } from './contexts'; export const SegmentationTableConfig: React.FC<{ children?: React.ReactNode }> = ({ children }) => { const { t } = useTranslation('SegmentationPanel'); const { renderFill, renderOutline, setRenderFill, setRenderFillInactive, setRenderOutline, setRenderOutlineInactive, fillAlpha, fillAlphaInactive, outlineWidth, setFillAlpha, setFillAlphaInactive, setOutlineWidth, renderInactiveSegmentations, toggleRenderInactiveSegmentations, segmentationRepresentationTypes, data, } = useSegmentationTableContext('SegmentationTableConfig'); if (!data?.length) { return null; } return (