Add PDF modal and selectedPost setter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-14 20:34:26 -05:00
parent 333c31c912
commit 1eb462fc40
2673 changed files with 1107183 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ type AppState = {
endorseUser: (userId: string, specialty: string) => void
endorsePost: (postId: string) => void
attachPDFToPost: (postId: string, file: File) => void
setSelectedPost: (id: string | null) => void
toggleCreatePost: () => void
}
@@ -91,6 +92,8 @@ const useAppStore = create<AppState>((set, get) => ({
}))
},
setSelectedPost: (id) => set(() => ({ selectedPostId: id })),
toggleCreatePost: () => set((state) => ({ ui: { isCreatePostOpen: !state.ui.isCreatePostOpen } })),
}))