This commit is contained in:
qiuchenfan 2025-11-21 11:40:52 +08:00
parent 4e377d4e8b
commit fa9eeb360e
1 changed files with 11 additions and 0 deletions

11
app/store/newsStore.ts Normal file
View File

@ -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 }),
}));