/** * Mini event-bus do ręcznego odpalenia tutoriala ("Replay tutorial" w ustawieniach). * OnboardingModal subskrybuje `onReplay`, ekran ustawień woła `replayOnboarding()`. * Zero zależności — lista listenerów w module scope. */ type Listener = () => void; const listeners = new Set(); export function onReplay(cb: Listener): () => void { listeners.add(cb); return () => listeners.delete(cb); } export function replayOnboarding(): void { listeners.forEach((cb) => cb()); }