// store/store.ts
import create from 'zustand'
interface Counter {
count: number;
incrementCount: () => void;
decrementCount: () => void;
}
export const useStore = create<Counter>(set => ({
count: 0,
incrementCount: () => set(state => ({count: state.count + 1})),
decrementCount: () => set(state => ({count: state.count - 1}))
}))