Files
5chan/src/stores/use-feed-reset-store.ts
T

14 lines
338 B
TypeScript
Raw Normal View History

2024-05-31 10:41:44 +02:00
import { create } from 'zustand';
interface FeedResetState {
reset: (() => void) | null;
setResetFunction: (resetFunction: () => void) => void;
}
const useFeedResetStore = create<FeedResetState>((set) => ({
reset: null,
setResetFunction: (resetFunction) => set({ reset: resetFunction }),
}));
export default useFeedResetStore;