import { create } from 'zustand';
import { useGitStore } from './gitStore';
import { useSessionFilesStore } from './sessionFilesStore';
import { useResearchStore } from './researchStore';
import { useTerminalStore } from './terminalStore';
export const useSettingsStore = create((set) => ({
    isExpanded: false,
    toggleSidebar: () => {
        set((state) => {
            const newExpanded = !state.isExpanded;
            if (newExpanded) {
                useGitStore.getState().collapseSidebar();
                useSessionFilesStore.getState().collapseSidebar();
                useResearchStore.getState().collapseSidebar();
                useTerminalStore.getState().collapseSidebar();
            }
            return { isExpanded: newExpanded };
        });
    },
    expandSidebar: () => set({ isExpanded: true }),
    collapseSidebar: () => set({ isExpanded: false }),
}));
//# sourceMappingURL=settingsStore.js.map