File size: 394 Bytes
82be208
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * uiStore - Shared UI/layout state
 *
 * Holds cross-component UI state that does not belong to a single component
 * (e.g. the desktop sidebar's expanded/collapsed state, which the sidebar
 * controls and the chat tab bar reacts to).
 */

class UiStore {
	/** Whether the desktop sidebar is expanded (open). */
	isSidebarExpanded = $state(false);
}

export const uiStore = new UiStore();