"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyEditorDate = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const TextField_1 = tslib_1.__importDefault(require("@material-ui/core/TextField"));
const PropertyEditorDate = (props) => {
    const onChange = (event) => {
        Reflect.set(props.editObject, props.propertyName, event.target.value);
        props.updateCallback();
    };
    return ((0, jsx_runtime_1.jsx)(TextField_1.default, { "data-testid": "property-editor-date", variant: "outlined", autoFocus: props.autoFocus, value: Reflect.get(props.editObject, props.propertyName), label: props.label, onChange: onChange, helperText: props.hint, type: props.storeTime ? "datetime-local" : "date", InputLabelProps: { shrink: true, required: true } }));
};
exports.PropertyEditorDate = PropertyEditorDate;
//# sourceMappingURL=PropertyEditorDate.js.map