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