cycles-quartz/apps/transfers/frontend/src/state/useGlobalState.ts
2024-09-03 11:30:46 +02:00

12 lines
258 B
TypeScript

import { create } from 'zustand'
interface GlobalState {
loading: boolean
setLoading: (loading: boolean) => void
}
export const useGlobalState = create<GlobalState>((set) => ({
loading: true,
setLoading: (loading: boolean) => set({ loading }),
}))