diff --git a/react-components/src/components/RevealCanvas/ViewerContext.tsx b/react-components/src/components/RevealCanvas/ViewerContext.tsx index 985d4ea677f..9a7f61ddce9 100644 --- a/react-components/src/components/RevealCanvas/ViewerContext.tsx +++ b/react-components/src/components/RevealCanvas/ViewerContext.tsx @@ -8,17 +8,19 @@ import { type CameraStateParameters, useCameraStateControl } from './hooks/useCa const ViewerContext = createContext(null); +export type ViewerContextProviderProps = { + cameraState?: CameraStateParameters; + setCameraState?: (cameraState?: CameraStateParameters) => void; + value: RevealRenderTarget | null; + children: ReactNode; +}; + export const ViewerContextProvider = ({ cameraState, setCameraState, value, children -}: { - cameraState?: CameraStateParameters; - setCameraState?: (cameraState?: CameraStateParameters) => void; - value: RevealRenderTarget | null; - children: ReactNode; -}): ReactElement => { +}: ViewerContextProviderProps): ReactElement => { return (