import { jsx } from 'react/jsx-runtime';
import { forwardRef, useCallback } from 'react';
import { V as VirtualizedOptionsPanel, O as OptionsPanel } from './syncFilterUtils-BLcRXQfd.js';

const SelectOptions = forwardRef(
  ({ selectedOption, virtualize, ...rest }, ref) => {
    const getCheckedState = useCallback(
      (item) => selectedOption?.id === item.original.id ? "checked" : "unchecked",
      [selectedOption]
    );
    const ListComponent = virtualize ? VirtualizedOptionsPanel : OptionsPanel;
    return /* @__PURE__ */ jsx(
      ListComponent,
      {
        ...rest,
        ref,
        selectionType: "single",
        getCheckedState
      }
    );
  }
);
SelectOptions.displayName = "SelectOptions";

export { SelectOptions as S };
//# sourceMappingURL=SelectOptions-CDoo4AUu.js.map
