import { cloneVNode } from 'vue';
import '../../../utils/index.mjs';
import { flattenChildren } from '../../../utils/vue/props.mjs';

const Item = ({
  setRef
}, {
  slots
}) => {
  var _a;
  const children = flattenChildren((_a = slots.default) == null ? void 0 : _a.call(slots));
  return children && children.length ? cloneVNode(children[0], {
    ref: setRef
  }) : children;
};
Item.props = {
  setRef: {
    type: Function,
    default: () => {
    }
  }
};

export { Item as default };
//# sourceMappingURL=Item.mjs.map
