import React from 'react'; import { MeasurementTable } from '@ohif/ui-next'; import { useSystem } from '@ohif/core'; /** * This is a measurement table that is designed to be nested inside * the accordion groups. */ export default function MeasurementTableNested(props) { const { title, items, group, customHeader } = props; const { commandsManager } = useSystem(); const onAction = (e, command, uid) => { commandsManager.run(command, { uid, annotationUID: uid, displayMeasurements: items }); }; return ( {customHeader && group.isFirst && customHeader({ ...props, items: props.allItems })} ); }