import { useVirtualizer as u } from "@tanstack/react-virtual";
const o = 50;
function s({
  count: e,
  scrollElementRef: r,
  overscan: i = 5,
  estimateSize: l = o
}) {
  const t = u({
    count: e,
    getScrollElement: () => r.current,
    estimateSize: () => l,
    overscan: i
  });
  return {
    virtualizer: t,
    virtualItems: t.getVirtualItems(),
    totalSize: t.getTotalSize()
  };
}
export {
  s as useListVirtualizer
};
