Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
11
CMyTapper/robucks-front/store/button.state.ts
Normal file
11
CMyTapper/robucks-front/store/button.state.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface IUseButtonStore {
|
||||
typeButton: 'pending' | 'farming' | 'claim_reward';
|
||||
setTypeButton: (typeButton: 'pending' | 'farming' | 'claim_reward') => void;
|
||||
}
|
||||
|
||||
export const useButtonStore = create<IUseButtonStore>((set) => ({
|
||||
typeButton: 'pending',
|
||||
setTypeButton: (typeButton) => set(() => ({ typeButton })),
|
||||
}));
|
||||
Reference in New Issue
Block a user