ohif-viewer/extensions/dicom-html/src/index.js

29 lines
624 B
JavaScript
Raw Normal View History

import React from 'react';
2019-06-16 20:15:34 +02:00
import OHIFDicomHtmlSopClassHandler from './OHIFDicomHtmlSopClassHandler.js';
const Component = React.lazy(() => {
return import('./OHIFDicomHtmlViewport');
});
const OHIFDicomHtmlViewport = props => {
return (
<React.Suspense fallback={<div>Loading...</div>}>
<Component {...props} />
</React.Suspense>
);
};
2019-04-16 18:00:06 +02:00
2019-06-17 22:23:31 +02:00
export default {
2019-06-16 20:15:34 +02:00
/**
2019-06-17 22:23:31 +02:00
* Only required property. Should be a unique value across all extensions.
2019-06-16 20:15:34 +02:00
*/
2019-06-17 22:23:31 +02:00
id: 'html',
2019-06-16 20:15:34 +02:00
getViewportModule() {
return OHIFDicomHtmlViewport;
2019-06-17 22:23:31 +02:00
},
getSopClassHandlerModule() {
2019-06-16 20:15:34 +02:00
return OHIFDicomHtmlSopClassHandler;
},
2019-06-17 22:23:31 +02:00
};