fix: setup tracking store
This commit is contained in:
15
stores/tracking.ts
Normal file
15
stores/tracking.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { create } from "zustand"
|
||||
|
||||
interface TrackingStoreState {
|
||||
hasRun: boolean
|
||||
setHasRun: () => void
|
||||
}
|
||||
|
||||
const useTrackingStore = create<TrackingStoreState>((set) => ({
|
||||
hasRun: false,
|
||||
setHasRun: () => set(() => ({ hasRun: true })),
|
||||
}))
|
||||
|
||||
export default useTrackingStore
|
||||
Reference in New Issue
Block a user