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