import { useRef } from "react" ; import { Optional } from "../../domain/types" ; import { accessContext } from "../../domain/audio" ; export function useAudioContext ( ) { const AudioCtx = useRef ( accessContext ( ) ) ; return AudioCtx . current ; }