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
