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