mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 12:46:04 +00:00
19 lines
693 B
JavaScript
19 lines
693 B
JavaScript
'use strict';
|
|
|
|
exports.__esModule = true;
|
|
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;
|
|
}
|
|
|
|
exports.default = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]; |