Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
11
CMyTapper/robucks-front/store/config-bot.state.ts
Normal file
11
CMyTapper/robucks-front/store/config-bot.state.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface IUseConfigBot {
|
||||
token: string;
|
||||
setToken: (token: string) => void;
|
||||
}
|
||||
|
||||
export const useConfigBotStore = create<IUseConfigBot>(set => ({
|
||||
token: '',
|
||||
setToken: token => set(() => ({ token })),
|
||||
}));
|
||||
Reference in New Issue
Block a user