2026-07-03 13:27:23 -04:00
|
|
|
import { atom } from 'jotai';
|
|
|
|
|
|
|
|
|
|
// Whether the room's Widgets side-panel is open (mirrors mediaGalleryAtom).
|
|
|
|
|
export const widgetsPanelAtom = atom<boolean>(false);
|
2026-10-20 20:32:45 -04:00
|
|
|
|
|
|
|
|
// [Gitea #205] Which widget the panel is showing, per room, so a floating
|
|
|
|
|
// widget's "Back to room" can open the panel on it.
|
|
|
|
|
export const widgetViewingAtom = atom<Record<string, string | null>>({});
|