import { toTimeString, TimeInput } 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/TimeField.tsx";
const parse = (value) => value ?? null;
const TimeField = SimpleRelativeSingleField((fieldMetadata, props) => {
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse,
    format: toTimeString
  });
  return /* @__PURE__ */ jsxDEV(TimeInput, {
    ...inputProps
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 18,
    columnNumber: 10
  }, void 0);
}, "TimeField");
export {
  TimeField
};
//# sourceMappingURL=TimeField.js.map
