This commit is contained in:
21
node_modules/react-redux/lib/connect/mapStateToProps.js
generated
vendored
Normal file
21
node_modules/react-redux/lib/connect/mapStateToProps.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = void 0;
|
||||
exports.whenMapStateToPropsIsFunction = whenMapStateToPropsIsFunction;
|
||||
exports.whenMapStateToPropsIsMissing = whenMapStateToPropsIsMissing;
|
||||
|
||||
var _wrapMapToProps = require("./wrapMapToProps");
|
||||
|
||||
function whenMapStateToPropsIsFunction(mapStateToProps) {
|
||||
return typeof mapStateToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : undefined;
|
||||
}
|
||||
|
||||
function whenMapStateToPropsIsMissing(mapStateToProps) {
|
||||
return !mapStateToProps ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function () {
|
||||
return {};
|
||||
}) : undefined;
|
||||
}
|
||||
|
||||
var _default = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
|
||||
exports["default"] = _default;
|
||||
Reference in New Issue
Block a user