import create from 'zustand'; interface GlobalStore { connectDialog: boolean; networkSwitcherDialog: boolean; landingDialog: boolean; riskNoticeDialog: boolean; marketId: string | null; update: (store: Partial<Omit<GlobalStore, 'update'>>) => void; } export const useGlobalStore = create<GlobalStore>((set) => ({ connectDialog: false, networkSwitcherDialog: false, landingDialog: false, riskNoticeDialog: false, marketId: null, update: (state) => { set(state); }, }));