@material-ui/lab
Version:
Material-UI Lab - Incubator for Material-UI React components.
18 lines (16 loc) • 678 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import AlertTitle from '@material-ui/core/AlertTitle';
let warnedOnce = false;
/**
* @ignore - do not document.
*/
export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props, ref) {
if (!warnedOnce) {
console.warn(['Material-UI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@material-ui/core'`", "or `import AlertTitle from '@material-ui/core/AlertTitle'`"].join('\n'));
warnedOnce = true;
}
return /*#__PURE__*/React.createElement(AlertTitle, _extends({
ref: ref
}, props));
});