import { actionCreator, getTimeStamp } from '@ema/rx';
const LOGIN = 'LOGIN';
export const initialState = { actionType: 'LOGIN', timestamp: getTimeStamp() };
export const loginAction = actionCreator((payload) => {
    return {
        type: LOGIN,
        payload
    };
});
export default function loginReducer(state, action) {
    switch (action.type) {
        case LOGIN:
            return Object.assign({}, state, { timestamp: getTimeStamp(), payload: action.payload });
        default:
            return state;
    }
}
