Spaces:
Running
Running
| import { create } from 'zustand'; | |
| interface SettingsState { | |
| activeTab: 'branches' | 'ai' | 'account'; | |
| setActiveTab: (tab: 'branches' | 'ai' | 'account') => void; | |
| } | |
| export const useSettingsStore = create<SettingsState>((set) => ({ | |
| activeTab: 'branches', | |
| setActiveTab: (activeTab) => set({ activeTab }), | |
| })); | |