| 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 |
|