UNPKG

@mui/lab

Version:
23 lines (21 loc) 651 B
'use client'; import * as React from 'react'; import Rating from '@mui/material/Rating'; import { jsx as _jsx } from "react/jsx-runtime"; let warnedOnce = false; const warn = () => { if (!warnedOnce) { console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n')); warnedOnce = true; } }; /** * @ignore - do not document. */ export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) { warn(); return /*#__PURE__*/_jsx(Rating, { ref: ref, ...props }); });