Files
video-gen/video-gen-admin/node_modules/antd/es/config-provider/PropWarning.js
T
2026-05-25 17:08:18 +08:00

20 lines
649 B
JavaScript

"use client";
import * as React from 'react';
import { devUseWarning } from '../_util/warning';
/**
* Warning for ConfigProviderProps.
* This will be empty function in production.
*/
const PropWarning = /*#__PURE__*/React.memo(props => {
const {
dropdownMatchSelectWidth
} = props;
const warning = devUseWarning('ConfigProvider');
warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
return null;
});
if (process.env.NODE_ENV !== 'production') {
PropWarning.displayName = 'PropWarning';
}
export default process.env.NODE_ENV !== 'production' ? PropWarning : () => null;