UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

28 lines (23 loc) 1.02 kB
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ // ### React import React from 'react'; // ## Constants import { DEPRECATED_WARNING } from '../../../utilities/constants'; import Alert from '../../alert'; import AlertContainer from '../../alert/container'; /** * A utility component that is used to highlight a deprecated component. */ var DeprecatedWarning = function DeprecatedWarning() { return React.createElement("div", { className: "slds-p-top_x-large" }, React.createElement(AlertContainer, null, React.createElement(Alert, { labels: { heading: React.createElement("span", null, React.createElement("strong", null, "Deprecated component."), " No fit and finish bug fixes will be accepted for this component.") }, variant: "error" }))); }; // ### Display Name DeprecatedWarning.displayName = DEPRECATED_WARNING; export default DeprecatedWarning; //# sourceMappingURL=index.js.map