UNPKG

@mui/lab

Version:
33 lines (30 loc) 1.36 kB
/* eslint-disable @typescript-eslint/no-unused-vars */ import * as React from 'react'; import PropTypes from 'prop-types'; var warnedOnce = false; var warn = function warn() { if (!warnedOnce) { console.warn(['MUI: The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n')); warnedOnce = true; } }; /** * @ignore - do not document. */ var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateRangePicker() { warn(); return null; }); process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes /* remove-proptypes */ = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * @ignore */ key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]) } : void 0; export default MobileDateRangePicker;