mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
16 lines
436 B
TypeScript
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;
|