UNPKG

@bigfishtv/cockpit

Version:

29 lines (23 loc) 693 B
'use strict'; exports.__esModule = true; exports.default = function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; var action = arguments[1]; switch (action.type) { case _ActionTypes.MAXIMUM_UPLOAD_SIZE_UPDATED: return action.size; } return state; }; var _ActionTypes = require('../constants/ActionTypes'); var initialState = null; /** * Reducer for storing maxiumum upload size * @param {Object} state * @param {Object} action * @param {String} action.type - has to be MAXIMUM_UPLOAD_SIZE_UPDATED from constants/ActionTypes * @return {Object} returns state */ /** * @module Reducers/maximumUploadSize */