import Skeleton from "react-loading-skeleton";
import "react-loading-skeleton/dist/skeleton.css";

const ListSkeleton = ({ amount }) => {
    const loadRows = Array.from({ length: amount });
    
  return (
        <>
            {loadRows.map((_, index) => (
                <div className='skeleton-list'><Skeleton /></div>
            ))}
        </>
  )
}

export default ListSkeleton
