import { createContext, useRef } from "react"; const PlayerContext = createContext(null); /** * Провайдер для Audio/Video плеера */ interface PlayerProviderProps { children: React.ReactNode; } export function PlayerProvider(props : PlayerProviderProps) { const audioRef = useRef(null); const playVoice = () => { } return ( {props.children} ) }