'use client';

import { createContext } from 'react';

// The persistent <audio> element. Components that need imperative access
// (TimeDisplay, Waveform playhead, click-to-seek) read this — not the React
// state — to avoid coupling per-frame work to renders.
export const AudioRefCtx = createContext<HTMLAudioElement | null>(null);
AudioRefCtx.displayName = 'AudioPlayerAudioRefCtx';
