(state: LayoutState)
| 41 | } |
| 42 | |
| 43 | const persist = (state: LayoutState): void => { |
| 44 | const scope = getCurrentAccountScope() |
| 45 | getLayoutQueue(scope).enqueue('layout', { |
| 46 | sidebarWidth: state.sidebarWidth, |
| 47 | sidebarVisible: state.sidebarVisible, |
| 48 | activePanel: state.activePanel |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | export const useLayoutStore = create<LayoutStore>((set, get) => ({ |
| 53 | ...initialState, |
no test coverage detected