Spaces:
Paused
Paused
Download console/src/test/react-window-mock.tsx from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/test/react-window-mock.tsx
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/test/react-window-mock.tsx
-
curl -L -o react-window-mock.tsx https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/test/react-window-mock.tsx
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 }; | |