import React from 'react'; import LegacyViewportActionBar from '../LegacyViewportActionBar'; import Notification from '../Notification'; interface StudyData { label: string; isTracked: boolean; isLocked: boolean; isRehydratable: boolean; studyDate: string; currentSeries: number; seriesDescription: string; modality: string; patientInformation: { patientName: string; patientSex: string; patientAge: string; MRN: string; thickness: string; spacing: string; scanner: string; }; } interface ViewportProps { viewportId: string; onArrowsClick: () => void; studyData: StudyData; children: React.ReactNode; } const Viewport: React.FC = ({ viewportId, onArrowsClick, studyData, children }) => { return (
{/* TODO: NOTIFICATION API DEFINITION - OHIF-112 */} { if (typeof window !== 'undefined') { window.alert(value); } }} />
{/* STUDY IMAGE */}
{children}
); }; export default Viewport; export type { ViewportProps, StudyData };