UNPKG

d2-ui

Version:
21 lines (15 loc) 616 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _hoistNonReactStatics = require('hoist-non-react-statics'); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var hoistStatics = function hoistStatics(higherOrderComponent) { return function (BaseComponent) { var NewComponent = higherOrderComponent(BaseComponent); (0, _hoistNonReactStatics2.default)(NewComponent, BaseComponent); return NewComponent; }; }; exports.default = hoistStatics;