import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRefWithGeneric } from '../../components/forwardRefWithGeneric';
import { SearchField, } from '../../components/SearchField';
import { useFormFieldProps } from '../useFormFieldProps';
/**
 * Адаптер для SearchField
 */
function FormSearchFieldInner(props, ref) {
    const fieldProps = useFormFieldProps({
        ...props,
        defaultValue: props.defaultValue || '',
    });
    return _jsx(SearchField, { ...fieldProps, ref: ref });
}
export const FormSearchField = forwardRefWithGeneric(FormSearchFieldInner);
