mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat: add "hidden threads" counter and button in catalog and board view, store and hook
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user