import { jsx as _jsx } from "react/jsx-runtime";
import '../resources.css';
const Date = (props) => {
    return (_jsx("div", { onMouseEnter: () => props.eventHandler({ name: "mouse-enter", triggerBy: "textbox" }), onMouseLeave: () => props.eventHandler({ name: "mouse-leave", triggerBy: "textbox" }), className: "textbox2-wrapper", children: _jsx("input", { readOnly: props.readOnly, className: "textbox2-input", type: "datetime-local", onChange: (e) => props.eventHandler({ name: "oninput", data: props.inputType == "int" ? parseInt(e.target.value.length == 0 ? "0" : e.target.value) : props.inputType == "float" ? parseFloat(e.target.value.length == 0 ? "0" : e.target.value) : e.target.value, triggerBy: "textbox" }), value: props.value ? props.value : "" }) }));
};
export default Date;
//# sourceMappingURL=Date.js.map