PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / admin / quick-setup / fields / layoutStore.js

layoutStore.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/quick-setup/fields/layoutStore.js

15 lines 485 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Shared (module-level) store for the Customize step's layout picks.
2 The picker writes selections here; Launch (Finish) reads them and saves
3 them as theme_mods — so layouts persist only when setup is finished,
4 the same as the rest of the wizard's values. */
5
6 const store = {};
7
8 export const setLayoutPick = (key, value) => {
9 store[key] = value;
10 };
11
12 export const getLayoutPicks = () => ({ ...store });
13
14 export const hasLayoutPicks = () => Object.keys(store).length > 0;
15