import { forwardRef } from "react"; import { getRandomInt, getRandomLength } from "../utils"; export const ListLoaderItemRow = forwardRef((props, ref) => (
{[...Array(6)].map((_, index) => ( <> {getRandomInt(1, 2) % 2 === 0 ? ( ) : ( )} ))}
)); const ListSection = ({ itemCount }: { itemCount: number }) => (
{[...Array(itemCount)].map((_, index) => ( ))}
); export const ListLayoutLoader = () => (
{[6, 5, 2].map((itemCount, index) => ( ))}
);