import { jsx as _jsx } from "react/jsx-runtime";
import { EmailField } from '../../components/EmailField';
import { forwardRefWithGeneric } from '../../components/forwardRefWithGeneric';
import { useFormFieldProps } from '../useFormFieldProps';
function FormEmailFieldInner(props, ref) {
    const fieldProps = useFormFieldProps({
        ...props,
        defaultValue: props.defaultValue || '',
    });
    return _jsx(EmailField, { ...fieldProps, ref: ref });
}
export const FormEmailField = forwardRefWithGeneric(FormEmailFieldInner);
