"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormSelect = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Select_1 = require("../../components/Select");
const useFormFieldProps_1 = require("../useFormFieldProps");
/**
 * Адаптер для Select
 */
const FormSelect = (props) => {
    const fieldProps = (0, useFormFieldProps_1.useFormFieldProps)({
        ...props,
        defaultValue: props.defaultValue ||
            (props.multiple ? [] : null),
    });
    return (0, jsx_runtime_1.jsx)(Select_1.Select, { ...fieldProps });
};
exports.FormSelect = FormSelect;
