import React from 'react';
import { Select } from 'antd';
import { locales } from '@pisell/utils';
import { I18N_RESOURCE_WALL_RESOURCES } from "../reservationConstants";
/**
 * 大屏快筛：画布资源多选（写入 `searchParams.filter.values.resource_wall_resource_ids`）。
 */
export function ReservationResourceWallResourceSelect(props) {
  var value = props.value,
    _onChange = props.onChange,
    _props$options = props.options,
    options = _props$options === void 0 ? [] : _props$options;
  return /*#__PURE__*/React.createElement(Select, {
    mode: "multiple",
    allowClear: true,
    showSearch: true,
    optionFilterProp: "label",
    placeholder: locales.getText(I18N_RESOURCE_WALL_RESOURCES),
    value: value !== null && value !== void 0 ? value : [],
    onChange: function onChange(v) {
      return _onChange === null || _onChange === void 0 ? void 0 : _onChange(v);
    },
    options: options,
    style: {
      minWidth: 260,
      maxWidth: 420
    }
  });
}