UNPKG

@wener/console

Version:
18 lines (17 loc) 532 B
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 } }; })); }