--- name: Viewer menu: Views route: examples/viewer --- import { Playground, Props } from 'docz'; import { NavBar, SidePanel, Svg, MeasurementsPanel, SegmentationTable, ButtonGroup, Button, Icon, IconButton, StudyBrowser, ViewportActionBar, ViewportGrid, Notification, } from '@ohif/ui'; import Header from './components/Header'; import ViewportToolbar from './components/ViewportToolBar'; import { tabs } from './studyBrowserMockData'; # Viewer {() => { const [activeMeasurementItem, setActiveMeasurementItem] = useState(null); const descriptionData = { date: '07-Sep-2010', modality: 'CT', description: 'CHEST/ABD/PELVIS W CONTRAST', }; const measurementTableData = { title: 'Measurements', amount: 10, data: new Array(10).fill({}).map((el, i) => ({ id: i + 1, label: 'Label short description', displayText: '24.0 x 24.0 mm (S:4, I:22)', isActive: activeMeasurementItem === i + 1, })), onClick: (id) => setActiveMeasurementItem((s) => (s === id ? null : id)), onEdit: (id) => alert(`Edit: ${id}`), }; return (
) }} />
} />
,
, ]} setActiveViewportIndex={setActiveViewportIndex} activeViewportIndex={activeViewportIndex} />
alert('Export')}> } /> ) }} /> ); }}