import { createElement } from "react";
import { toTimeString, TimeInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
const parse = (value) => value ?? null;
const TimeField = SimpleRelativeSingleField((fieldMetadata, props) => {
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse,
    format: toTimeString
  });
  return /* @__PURE__ */ createElement(TimeInput, {
    ...inputProps
  });
}, "TimeField");
export { TimeField };
//# sourceMappingURL=TimeField.js.map
