UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

11 lines (10 loc) 493 B
import _typeof from "@babel/runtime/helpers/typeof"; import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import * as React from 'react'; export default function useMergedConfig(propConfig, templateConfig) { return React.useMemo(function () { var support = !!propConfig; return [support, _objectSpread(_objectSpread({}, templateConfig), support && _typeof(propConfig) === 'object' ? propConfig : null)]; }, [propConfig]); } //# sourceMappingURL=useMergedConfig.js.map