rsuite
Version:
A suite of react components
14 lines • 482 B
JavaScript
'use client';
import omitBy from 'lodash/omitBy';
/**
* Omit the calendar-only props from an object.
*
* @param props - The object to omit props from.
* @returns The object with calendar-only props omitted.
*/
export var omitHideDisabledProps = function omitHideDisabledProps(props) {
return omitBy(props, function (_val, key) {
return key.startsWith('disabled') || key.startsWith('hide') || key.startsWith('shouldDisable');
});
};
export default omitHideDisabledProps;