import React from 'react'; import { asyncComponent, retryImport } from '@ohif/ui'; import commandsModule from './commandsModule.js'; import toolbarModule from './toolbarModule.js'; import withCommandsManager from './withCommandsManager.js'; import { version } from '../package.json'; // This feels weird // import loadLocales from './loadLocales'; const OHIFVTKViewport = asyncComponent(() => retryImport(() => import(/* webpackChunkName: "OHIFVTKViewport" */ './OHIFVTKViewport.js') ) ); const vtkExtension = { /** * Only required property. Should be a unique value across all extensions. */ id: 'vtk', version, getViewportModule({ commandsManager, servicesManager }) { const ExtendedVTKViewport = props => ( ); return withCommandsManager(ExtendedVTKViewport, commandsManager); }, getToolbarModule() { return toolbarModule; }, getCommandsModule({ commandsManager, servicesManager }) { const { UINotificationService } = servicesManager.services; return commandsModule({ commandsManager, UINotificationService }); }, }; export default vtkExtension; export { vtkExtension }; // loadLocales();