import { Util } from '../lib/util/util';
export default function appReducer(state, action) {
    switch (action.type) {
        case 'GITHUB_FOLLOWERS_LOADING':
            return Object.assign({}, state, { isLoading: true });
        case 'GITHUB_FOLLOWERS_LOADED':
            return Object.assign({}, state, { isLoading: false, users: action.payload });
        case 'NAME_CHANGED':
            return Object.assign({}, state, { isLoading: false, timestamp: Util.getTimeStamp(), name: action.payload });
        default:
            return state;
    }
}
//# sourceMappingURL=app-reducer.js.map