@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
30 lines (24 loc) • 1.13 kB
JavaScript
/* 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 react/jsx-no-literals */
// ### 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 /*#__PURE__*/React.createElement("div", {
className: "slds-p-top_x-large"
}, /*#__PURE__*/React.createElement(AlertContainer, null, /*#__PURE__*/React.createElement(Alert, {
labels: {
heading: /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/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