Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, otherProps.InputProps)
});
var renderDatePicker = function renderDatePicker() {
return _react["default"].createElement(_pickers.KeyboardDatePicker, fieldProps);
};
var renderTimePicker = function renderTimePicker() {
return _react["default"].createElement(_pickers.KeyboardTimePicker, fieldProps);
};
var renderDateTimePicker = function renderDateTimePicker() {
return _react["default"].createElement(_pickers.KeyboardDateTimePicker, fieldProps);
};
return _react["default"].createElement(_pickers.MuiPickersUtilsProvider, {
utils: _dateFns["default"],
locale: LOCALES[locale]
}, type === 'date' && renderDatePicker(), type === 'time' && renderTimePicker(), type === 'datetime' && renderDateTimePicker());
};