UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

24 lines (19 loc) 916 B
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ import isPrototype from '../../utilities/warning/component-is-prototype'; import onlyOneOfProperties from '../../utilities/warning/only-one-of-properties'; import getComponentDocFn from '../../utilities/get-component-doc'; var checkProps = function checkProps() {}; if (process.env.NODE_ENV !== 'production') { checkProps = function checkProps(COMPONENT, props, jsonDoc) { var createDocUrl = getComponentDocFn(jsonDoc); isPrototype(COMPONENT); onlyOneOfProperties(COMPONENT, { 'assistiveText.label': props.assistiveText && props.assistiveText.label, label: props.labels.label }, createDocUrl('assistiveText')); }; } export default checkProps; //# sourceMappingURL=check-props.js.map