/**
 * useVideoConfig — Hook to read fps, width, height, durationInFrames.
 *
 * Drop-in replacement for `import { useVideoConfig } from 'remotion'`.
 */
import { useContext } from 'react';
import { VideoConfigContext } from './PlayerContext';
import type { VideoConfig } from './types';

export function useVideoConfig(): VideoConfig {
  return useContext(VideoConfigContext);
}
