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

28 lines
624 B
JavaScript
Raw Normal View History

import React from 'react';
2019-06-16 14:15:34 -04: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 12:00:06 -04:00
2019-06-17 16:23:31 -04:00
export default {
2019-06-16 14:15:34 -04:00
/**
2019-06-17 16:23:31 -04:00
* Only required property. Should be a unique value across all extensions.
2019-06-16 14:15:34 -04:00
*/
2019-06-17 16:23:31 -04:00
id: 'html',
2019-06-16 14:15:34 -04:00
getViewportModule() {
return OHIFDicomHtmlViewport;
2019-06-17 16:23:31 -04:00
},
2019-06-16 14:17:22 -04:00
getSopClassHandlerModule() {
2019-06-16 14:15:34 -04:00
return OHIFDicomHtmlSopClassHandler;
},
2019-06-17 16:23:31 -04:00
};