UNPKG

491 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = unsupportedProp;
7
8function unsupportedProp(props, propName, componentName, location, propFullName) {
9 if (process.env.NODE_ENV === 'production') {
10 return null;
11 }
12
13 var propFullNameSafe = propFullName || propName;
14
15 if (typeof props[propName] !== 'undefined') {
16 return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
17 }
18
19 return null;
20}
\No newline at end of file