UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

20 lines (15 loc) 572 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 */ /* eslint-disable max-len */ import onlyOneOfProperties from '../../../utilities/warning/only-one-of-properties'; let checkProps = function () {}; if (process.env.NODE_ENV !== 'production') { checkProps = function (COMPONENT, props) { onlyOneOfProperties(COMPONENT, { assistiveText: props.assistiveText, label: props.label }); }; } export default checkProps;