UNPKG

@nulib/react-media-player

Version:

Viewer for audio, video and image file types driven by a IIIF manifest

22 lines (21 loc) 680 B
import React from "react"; import { Vault } from "@hyperion-framework/vault"; export declare type ConfigOptions = { showTitle: boolean; showIIIFBadge: boolean; ignoreCaptionLabels: string[]; }; interface ViewerContextStore { activeCanvas: string; configOptions: ConfigOptions; isLoaded: boolean; vault: Vault; } interface ViewerProviderProps { initialState?: ViewerContextStore; children: React.ReactNode; } declare const ViewerProvider: React.FC<ViewerProviderProps>; declare function useViewerState(): ViewerContextStore; declare function useViewerDispatch(): ViewerContextStore; export { ViewerProvider, useViewerState, useViewerDispatch };