2020-05-18 21:05:49 +02:00
|
|
|
import React from 'react';
|
2024-11-06 13:15:27 +01:00
|
|
|
import { WrappedPanelStudyBrowser } from './Panels';
|
2023-12-11 15:43:58 +01:00
|
|
|
import i18n from 'i18next';
|
2020-05-15 14:31:18 +02:00
|
|
|
|
2020-05-15 12:48:00 +02:00
|
|
|
// TODO:
|
|
|
|
|
// - No loading UI exists yet
|
|
|
|
|
// - cancel promises when component is destroyed
|
|
|
|
|
// - show errors in UI for thumbnails if promise fails
|
|
|
|
|
|
2023-09-01 22:19:39 +02:00
|
|
|
function getPanelModule({ commandsManager, extensionManager, servicesManager }) {
|
2020-05-09 20:23:43 +02:00
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'seriesList',
|
2023-09-22 21:36:44 +02:00
|
|
|
iconName: 'tab-studies',
|
2020-05-09 20:23:43 +02:00
|
|
|
iconLabel: 'Studies',
|
2023-12-11 15:43:58 +01:00
|
|
|
label: i18n.t('SidePanel:Studies'),
|
2024-09-11 20:57:19 +02:00
|
|
|
component: props => (
|
|
|
|
|
<WrappedPanelStudyBrowser
|
|
|
|
|
{...props}
|
|
|
|
|
commandsManager={commandsManager}
|
|
|
|
|
extensionManager={extensionManager}
|
|
|
|
|
servicesManager={servicesManager}
|
|
|
|
|
/>
|
|
|
|
|
),
|
2020-05-09 20:23:43 +02:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getPanelModule;
|