"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initialState = {
    interactiveVersion: null,
    confirmSchemaUpload: true,
};
function reducer(state, action) {
    switch (action.type) {
        case "SYNC_LINK" /* Link */:
            return Object.assign({}, state, { interactiveVersion: action.version });
        case "SYNC_UNLINK" /* Unlink */:
            return Object.assign({}, state, { interactiveVersion: null, confirmSchemaUpload: true });
        case "SYNC_DONT_CONFIRM_SCHEMA" /* DontConfirmSchema */:
            return Object.assign({}, state, { confirmSchemaUpload: false });
        default:
            return state;
    }
}
exports.reducer = reducer;
