'use client'; /** * Generic notification-sound bus. * * Lifted from `ui-tools/chat/core/audio/audioBus` and generalised over an * arbitrary event-key type so any feature (chat, presence, alerts, …) * can reuse the same Safari unlock + multi-fire-safe playback infra. * * Pitfalls this addresses: * - Safari needs a user-gesture transaction to unlock playback. We * pre-allocate an `