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