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