UNPKG

dash-renderer

Version:

render dash components in react

25 lines (24 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var customHooks = function customHooks() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { layout_pre: null, layout_post: null, request_pre: null, request_post: null, callback_resolved: null, request_refresh_jwt: null, bear: false }; var action = arguments.length > 1 ? arguments[1] : undefined; switch (action.type) { case 'SET_HOOKS': return action.payload; default: return state; } }; var _default = exports.default = customHooks;