"use client"; /** * Tiny event bus so any screen can open the settings dialog (which lives in * the header) without prop drilling. */ export const OPEN_SETTINGS_EVENT = "freezmo:open-settings"; export function openSettings(): void { if (typeof window === "undefined") return; window.dispatchEvent(new CustomEvent(OPEN_SETTINGS_EVENT)); }