1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = unsupportedProp;
|
7 |
|
8 | function 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 |