15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { useViewportGrid } from '@ohif/ui-next';
|
|
import { useViewportSegmentations } from './useViewportSegmentations';
|
|
|
|
function useActiveViewportSegmentationRepresentations() {
|
|
const [viewportGrid] = useViewportGrid();
|
|
|
|
const viewportId = viewportGrid?.activeViewportId;
|
|
|
|
const segmentations = useViewportSegmentations({ viewportId });
|
|
|
|
return segmentations;
|
|
}
|
|
|
|
export { useActiveViewportSegmentationRepresentations };
|