import { create } from "zustand";
import { devtools } from "zustand/middleware";
//#region src/stores/shellStore.ts
const useShellStore = create()(devtools((set) => ({
	subHeaderActionHasChildren: false,
	setSubHeaderActionHasChildren: (subHeaderActionHasChildren) => set((state) => ({ subHeaderActionHasChildren })),
	navigationExpanded: true,
	setNavigationExpanded: (navigationExpanded) => set((state) => ({ navigationExpanded })),
	isValidWidget: (a) => false,
	setIsValidWidget: (isValidWidget) => set((state) => ({ isValidWidget })),
	getWidget: (a) => null,
	setGetWidget: (getWidget) => set((state) => ({ getWidget })),
	shellHidden: false,
	setShellHidden: (shellHidden) => set((state) => ({ shellHidden })),
	currentContainerId: null,
	setCurrentContainerId: (currentContainerId) => set((state) => ({ currentContainerId }))
})));
const useWithoutShellParam = () => {
	const searchParams = new URLSearchParams(window.location.search);
	return searchParams.has("withoutShell") && searchParams.get("withoutShell") === "true";
};
//#endregion
export { useShellStore, useWithoutShellParam };

//# sourceMappingURL=shellStore.mjs.map