ohif-viewer/extensions/tmtv/src/getPanelModule.tsx

71 lines
1.6 KiB
TypeScript

import React from 'react';
import { PanelPetSUV, PanelROIThresholdExport } from './Panels';
import { Toolbox } from '@ohif/extension-default';
import PanelTMTV from './Panels/PanelTMTV';
function getPanelModule({ commandsManager, extensionManager, servicesManager }) {
const wrappedPanelPetSuv = () => {
return <PanelPetSUV />;
};
const wrappedROIThresholdToolbox = () => {
return (
<Toolbox
buttonSectionId="ROIThresholdToolbox"
title="Threshold Tools"
/>
);
};
const wrappedROIThresholdExport = () => {
return <PanelROIThresholdExport />;
};
const wrappedPanelTMTV = () => {
return (
<>
<Toolbox
buttonSectionId="ROIThresholdToolbox"
title="Threshold Tools"
/>
<PanelTMTV
commandsManager={commandsManager}
servicesManager={servicesManager}
/>
</>
);
};
return [
{
name: 'petSUV',
iconName: 'tab-patient-info',
iconLabel: 'Patient Info',
label: 'Patient Info',
component: wrappedPanelPetSuv,
},
{
name: 'tmtv',
iconName: 'tab-segmentation',
iconLabel: 'Segmentation',
component: wrappedPanelTMTV,
},
{
name: 'tmtvBox',
iconName: 'tab-segmentation',
iconLabel: 'Segmentation',
label: 'Segmentation Toolbox',
component: wrappedROIThresholdToolbox,
},
{
name: 'tmtvExport',
iconName: 'tab-segmentation',
iconLabel: 'Segmentation',
label: 'Segmentation Export',
component: wrappedROIThresholdExport,
},
];
}
export default getPanelModule;