'use client'; import type { StatusIndicatorCore } from '@videojs/core'; import { createContext, type ProviderProps, useContext } from 'react'; export interface StatusIndicatorContextValue { state: StatusIndicatorCore.State; } const StatusIndicatorContext = createContext(null); export function StatusIndicatorProvider({ value, children }: ProviderProps) { return {children}; } export function useStatusIndicatorContext(): StatusIndicatorContextValue { const ctx = useContext(StatusIndicatorContext); if (!ctx) throw new Error('StatusIndicator child compounds must be used within a StatusIndicator.Root'); return ctx; }