import { toISOString, toDatetimeString, DateTimeInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { jsxDEV } from "react/jsx-dev-runtime";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/DateTimeField.tsx";
const DateTimeField = SimpleRelativeSingleField((fieldMetadata, props) => {
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse: toISOString,
    format: toDatetimeString
  });
  return /* @__PURE__ */ jsxDEV(DateTimeInput, {
    ...inputProps
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 24,
    columnNumber: 10
  }, void 0);
}, "DateTimeField");
export {
  DateTimeField
};
//# sourceMappingURL=DateTimeField.js.map
