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