12 lines
237 B
TypeScript
12 lines
237 B
TypeScript
|
import { UserState } from '@/state/types';
|
||
|
import { action } from 'easy-peasy';
|
||
|
|
||
|
const user: UserState = {
|
||
|
data: undefined,
|
||
|
setUserData: action((state, payload) => {
|
||
|
state.data = payload;
|
||
|
}),
|
||
|
};
|
||
|
|
||
|
export default user;
|