File size: 569 Bytes
8cd46d1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import React from 'react';
import Skeleton from 'react-loading-skeleton';
import { Container } from './style';
function SkeletonTransaction(props) {
const skeletonRender = [...Array(props.transactions)].map((item, index) => {
return (
<Container key={index}>
<div>
<p>
<Skeleton />
</p>
</div>
<div>
<Skeleton />
</div>
<div>
<Skeleton />
</div>
</Container>
);
});
return <div>{skeletonRender}</div>;
}
export default SkeletonTransaction;
|