UNPKG

react-redux

Version:

Official React bindings for Redux

19 lines (14 loc) 722 B
"use strict"; exports.__esModule = true; exports.whenMapStateToPropsIsFunction = whenMapStateToPropsIsFunction; exports.whenMapStateToPropsIsMissing = whenMapStateToPropsIsMissing; exports.default = void 0; 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)(() => ({})) : undefined; } var _default = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]; exports.default = _default;