11 lines
237 B
TypeScript
11 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;
|