mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
23 lines
521 B
TypeScript
23 lines
521 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import type { TxBlob } from 'types/api/blobs';
|
|
|
|
import TxBlobListItem from './TxBlobListItem';
|
|
|
|
const TxBlobsList = ({ data, isLoading }: { data: Array<TxBlob>; isLoading?: boolean }) => {
|
|
return (
|
|
<Box>
|
|
{ data.map((item, index) => (
|
|
<TxBlobListItem
|
|
key={ item.hash + (isLoading ? index : '') }
|
|
data={ item }
|
|
isLoading={ isLoading }
|
|
/>
|
|
)) }
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default TxBlobsList;
|