HF / console /src /test /react-window-mock.tsx
mysticaldragon's picture
Deploy QwenPaw - Personal AI Assistant Platform
4e7644b
Raw History Blame Contribute Delete
433 Bytes
import React from "react";
export const FixedSizeList = ({
children,
itemData,
itemCount,
}: {
children: React.ReactNode;
itemData: any;
itemCount: number;
}) => {
const Row = children as unknown as React.ComponentType<any>;
return (
<>
{Array.from({ length: itemCount }, (_, i) => (
<Row key={i} index={i} style={{}} data={itemData} />
))}
</>
);
};
export default { FixedSizeList };