update thread
This commit is contained in:
13
src/stores/note.tsx
Normal file
13
src/stores/note.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface NoteState {
|
||||
hasNewNote: boolean;
|
||||
toggleHasNewNote: (by: boolean) => void;
|
||||
}
|
||||
|
||||
export const useNote = create<NoteState>((set) => ({
|
||||
hasNewNote: false,
|
||||
toggleHasNewNote: (status: boolean) => {
|
||||
set({ hasNewNote: status });
|
||||
},
|
||||
}));
|
||||
Reference in New Issue
Block a user