feat: add "hidden threads" counter and button in catalog and board view, store and hook

This commit is contained in:
Tom (plebeius.eth)
2024-05-30 18:01:37 +02:00
parent 32f52200b7
commit fd092f1bee
10 changed files with 153 additions and 40 deletions
+15
View File
@@ -0,0 +1,15 @@
import { create } from 'zustand';
interface StoreState {
showBlockedComments: boolean;
setShowBlockedComments: (show: boolean) => void;
resetShowBlockedComments: () => void;
}
const useStore = create<StoreState>((set) => ({
showBlockedComments: false,
setShowBlockedComments: (show) => set({ showBlockedComments: show }),
resetShowBlockedComments: () => set({ showBlockedComments: false }),
}));
export default useStore;