import e from"../../../prop-types/index.js";import n from"./chainPropTypes.js";function t(e,n,t,o,r){var a,i=e[n],c=r||n;if(null==i)return null;var l=i.type;return"function"!=typeof l||function(e){var n=e.prototype;return Boolean((void 0===n?{}:n).isReactComponent)}(l)||(a="Did you accidentally use a plain function component for an element instead?"),void 0!==a?new Error("Invalid ".concat(o," `").concat(c,"` supplied to `").concat(t,"`. ")+"Expected an element that can hold a ref. ".concat(a," ")+"For more information see https://material-ui.com/r/caveat-with-refs-guide"):null}var o=n(e.element,t);o.isRequired=n(e.element.isRequired,t);export default o;
//# sourceMappingURL=elementAcceptingRef.js.map
