mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(catalog): add refresh button
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user