2023-03-10 04:30:09 +01:00
|
|
|
import { Types } from '@ohif/core';
|
2023-09-01 22:19:39 +02:00
|
|
|
import { PanelMeasurementTableTracking, PanelStudyBrowserTracking } from './panels';
|
2023-12-11 15:43:58 +01:00
|
|
|
import i18n from 'i18next';
|
2024-09-11 20:57:19 +02:00
|
|
|
import React from 'react';
|
2020-05-26 15:03:58 +02: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 20:57:19 +02:00
|
|
|
|
2023-09-01 22:19:39 +02:00
|
|
|
function getPanelModule({ commandsManager, extensionManager, servicesManager }): Types.Panel[] {
|
2020-05-26 15:03:58 +02:00
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'seriesList',
|
2023-09-22 21:36:44 +02:00
|
|
|
iconName: 'tab-studies',
|
2020-05-26 15:03:58 +02:00
|
|
|
iconLabel: 'Studies',
|
2023-12-11 15:43:58 +01:00
|
|
|
label: i18n.t('SidePanel:Studies'),
|
2025-02-19 00:19:09 +01:00
|
|
|
component: props => <PanelStudyBrowserTracking {...props} />,
|
2020-05-26 15:03:58 +02:00
|
|
|
},
|
|
|
|
|
{
|
2020-06-03 21:20:09 +02:00
|
|
|
name: 'trackedMeasurements',
|
2022-11-16 20:19:52 +01:00
|
|
|
iconName: 'tab-linear',
|
2020-05-26 15:03:58 +02:00
|
|
|
iconLabel: 'Measure',
|
2023-12-11 15:43:58 +01:00
|
|
|
label: i18n.t('SidePanel:Measurements'),
|
2024-09-11 20:57:19 +02:00
|
|
|
component: props => (
|
|
|
|
|
<PanelMeasurementTableTracking
|
|
|
|
|
{...props}
|
2025-03-20 14:22:45 +01:00
|
|
|
key="trackedMeasurements-panel"
|
2024-09-11 20:57:19 +02:00
|
|
|
commandsManager={commandsManager}
|
|
|
|
|
extensionManager={extensionManager}
|
|
|
|
|
servicesManager={servicesManager}
|
|
|
|
|
/>
|
|
|
|
|
),
|
2020-05-26 15:03:58 +02:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getPanelModule;
|