Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
13
CMyTapper/robucks-front/store/shopItems.state.ts
Normal file
13
CMyTapper/robucks-front/store/shopItems.state.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { create } from 'zustand';
|
||||
import { ITask } from '@/api/tasks.api';
|
||||
import { IShopItem } from '@/api/shop-item.api';
|
||||
|
||||
interface IUseTasks {
|
||||
shopItems: IShopItem[];
|
||||
setShopItems(tasks: IShopItem[]): void;
|
||||
}
|
||||
|
||||
export const useShopItemsStore = create<IUseTasks>(set => ({
|
||||
shopItems: [],
|
||||
setShopItems: shopItems => set(() => ({ shopItems })),
|
||||
}));
|
||||
Reference in New Issue
Block a user