import { forwardRef } from 'react';

import InfiniteList, { InfiniteListProps } from './InfiniteList';

export const InfiniteListWithRef = forwardRef<
  HTMLDivElement,
  React.PropsWithChildren<InfiniteListProps>
>(function InfiniteListWithRefComponent(props, ref) {
  return (
    <div ref={ref}>
      <InfiniteList {...props} />
    </div>
  );
});

export default InfiniteListWithRef;
