import { createContext, useRef } from "react";

const PlayerContext = createContext(null);
/**
 * Провайдер для Audio/Video плеера
 */
interface PlayerProviderProps {
    children: React.ReactNode;
}
export function PlayerProvider(props : PlayerProviderProps) {

    const audioRef = useRef<HTMLAudioElement>(null);

    const playVoice = () => {
        
    }


    return (
        <PlayerContext.Provider value={null}>
            {props.children}
            <audio ref={audioRef} />
        </PlayerContext.Provider>
    )
}