store
This commit is contained in:
parent
4e377d4e8b
commit
fa9eeb360e
|
|
@ -0,0 +1,11 @@
|
|||
import { create } from "zustand";
|
||||
|
||||
type NewsStore = {
|
||||
news: any;
|
||||
setNews: (news: any) => void;
|
||||
};
|
||||
|
||||
const newsStore = create<NewsStore>((set,get) => ({
|
||||
news: [],
|
||||
setNews: (news: any) => set({ news }),
|
||||
}));
|
||||
Loading…
Reference in New Issue