@wener/console
Version:
Base console UI toolkit
18 lines (17 loc) • 532 B
JavaScript
import { getGlobalStates } from "@wener/utils";
import { createStore } from "zustand";
import { mutative } from "zustand-mutative";
import { WindowFrame } from "./WindowFrame.js";
export function getWindowStyleStore() {
return getGlobalStates("WindowStyleStore", createWindowStyleStore);
}
export function createWindowStyleStore() {
return createStore(mutative(function () {
return {
theme: "system",
components: {
WindowFrame: WindowFrame
}
};
}));
}