mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
29 lines
729 B
TypeScript
29 lines
729 B
TypeScript
import React from 'react';
|
|
|
|
import type { ArbitrumL2TxnWithdrawalsItem } from 'types/api/arbitrumL2';
|
|
|
|
import ArbitrumL2TxnWithdrawalsListItem from './ArbitrumL2TxnWithdrawalsListItem';
|
|
|
|
interface Props {
|
|
data: Array<ArbitrumL2TxnWithdrawalsItem>;
|
|
isLoading: boolean;
|
|
txHash: string | undefined;
|
|
}
|
|
|
|
const ArbitrumL2TxnWithdrawalsList = ({ data, isLoading, txHash }: Props) => {
|
|
return (
|
|
<div>
|
|
{ data.map((item, index) => (
|
|
<ArbitrumL2TxnWithdrawalsListItem
|
|
key={ String(item.id) + (isLoading ? index : '') }
|
|
data={ item }
|
|
isLoading={ isLoading }
|
|
txHash={ txHash }
|
|
/>
|
|
)) }
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ArbitrumL2TxnWithdrawalsList);
|