Custom viewer render function type.
Custom viewers receive the parsed JSON data, file entry, and close handler. They should return a React node to render as the viewer content.
const qaViewer: CustomViewerRenderer = (data, file, onClose) => ( <QASessionViewer sessionData={data} onClose={onClose} />); Copy
const qaViewer: CustomViewerRenderer = (data, file, onClose) => ( <QASessionViewer sessionData={data} onClose={onClose} />);
Custom viewer render function type.