Hiyve Components - v1.0.0
    Preparing search index...

    Type Alias CustomViewerRenderer

    CustomViewerRenderer: (
        data: unknown,
        file: FileEntry,
        onClose: () => void,
        fileUrl: string | null,
    ) => ReactNode

    Custom viewer render function type.

    Type Declaration

      • (
            data: unknown,
            file: FileEntry,
            onClose: () => void,
            fileUrl: string | null,
        ): ReactNode
      • Parameters

        • data: unknown
        • file: FileEntry
        • onClose: () => void
        • fileUrl: string | null

        Returns ReactNode

    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} />
    );