import { useContext } from 'react' ; import type { IDataContext } from '../DataContext/IDataContext' ; import { useDynamicDataContext } from '../DataContext/useDynamicDataContext' ; import { CaptureViewContext } from './CaptureViewContext' ; export function useCaptureViewContext ( ) { const context = useContext ( CaptureViewContext ) ; const dynamic = useDynamicDataContext ( context ) ; if ( context === undefined ) { return undefined ; } return dynamic ; }