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