fix: setup tracking store

This commit is contained in:
Christel Westerberg
2024-08-29 10:05:50 +02:00
parent facd6bb4ad
commit 49a39fe5aa
2 changed files with 21 additions and 5 deletions

15
stores/tracking.ts Normal file
View 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