2023-03-09 22:30:09 -05:00
|
|
|
import { Types } from '@ohif/core';
|
2023-09-01 16:19:39 -04:00
|
|
|
import { PanelMeasurementTableTracking, PanelStudyBrowserTracking } from './panels';
|
2023-12-11 19:43:58 +05:00
|
|
|
import i18n from 'i18next';
|
2024-09-11 14:57:19 -04:00
|
|
|
import React from 'react';
|
2020-05-26 09:03:58 -04:00
|
|
|
|
|
|
|
|
// TODO:
|
|
|
|
|
// - No loading UI exists yet
|
|
|
|
|
// - cancel promises when component is destroyed
|
|
|
|
|
// - show errors in UI for thumbnails if promise fails
|
2024-09-11 14:57:19 -04:00
|
|
|
|
2023-09-01 16:19:39 -04:00
|
|
|
function getPanelModule({ commandsManager, extensionManager, servicesManager }): Types.Panel[] {
|
2020-05-26 09:03:58 -04:00
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'seriesList',
|
2023-09-22 15:36:44 -04:00
|
|
|
iconName: 'tab-studies',
|
2020-05-26 09:03:58 -04:00
|
|
|
iconLabel: 'Studies',
|
2023-12-11 19:43:58 +05:00
|
|
|
label: i18n.t('SidePanel:Studies'),
|
2025-02-18 18:19:09 -05:00
|
|
|
component: props => <PanelStudyBrowserTracking {...props} />,
|
2020-05-26 09:03:58 -04:00
|
|
|
},
|
|
|
|
|
{
|
2020-06-03 15:20:09 -04:00
|
|
|
name: 'trackedMeasurements',
|
2022-11-16 14:19:52 -05:00
|
|
|
iconName: 'tab-linear',
|
2020-05-26 09:03:58 -04:00
|
|
|
iconLabel: 'Measure',
|
2023-12-11 19:43:58 +05:00
|
|
|
label: i18n.t('SidePanel:Measurements'),
|
2024-09-11 14:57:19 -04:00
|
|
|
component: props => (
|
|
|
|
|
<PanelMeasurementTableTracking
|
|
|
|
|
{...props}
|
2025-03-20 09:22:45 -04:00
|
|
|
key="trackedMeasurements-panel"
|
2024-09-11 14:57:19 -04:00
|
|
|
commandsManager={commandsManager}
|
|
|
|
|
extensionManager={extensionManager}
|
|
|
|
|
servicesManager={servicesManager}
|
|
|
|
|
/>
|
|
|
|
|
),
|
2020-05-26 09:03:58 -04:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getPanelModule;
|