Files
5chan/src/stores/useBlockedCommentsStore.ts
T

16 lines
436 B
TypeScript

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;