"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormEmailField = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const EmailField_1 = require("../../components/EmailField");
const forwardRefWithGeneric_1 = require("../../components/forwardRefWithGeneric");
const useFormFieldProps_1 = require("../useFormFieldProps");
function FormEmailFieldInner(props, ref) {
    const fieldProps = (0, useFormFieldProps_1.useFormFieldProps)({
        ...props,
        defaultValue: props.defaultValue || '',
    });
    return (0, jsx_runtime_1.jsx)(EmailField_1.EmailField, { ...fieldProps, ref: ref });
}
exports.FormEmailField = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(FormEmailFieldInner);
