import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { DatePicker, } from '../../date-picker';
import { dateDefaultValueFactory } from '../shared';
import { FormField } from '../Field';
export var FormDatePickerField = function (props) {
    var _a;
    return (_jsx(FormField, __assign({}, props, { defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : dateDefaultValueFactory }, { children: function (childProps) { return _jsx(DatePicker, __assign({}, props.props, childProps), void 0); } }), void 0));
};
