mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* Rollups: move layer numbering to the ENV Resolves #2554 * fix review comments
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { GridItem } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { layerLabels } from 'lib/rollups/utils';
|
|
import DetailedInfoTimestamp from 'ui/shared/DetailedInfo/DetailedInfoTimestamp';
|
|
import TxEntityL1 from 'ui/shared/entities/tx/TxEntityL1';
|
|
|
|
import OptimisticL2TxnBatchBlobWrapper from './OptimisticL2TxnBatchBlobWrapper';
|
|
|
|
interface Props {
|
|
l1TxHashes: Array<string>;
|
|
l1Timestamp: string;
|
|
isLoading: boolean;
|
|
}
|
|
|
|
const OptimisticL2TxnBatchBlobCallData = ({ l1TxHashes, l1Timestamp, isLoading }: Props) => {
|
|
return (
|
|
<OptimisticL2TxnBatchBlobWrapper isLoading={ isLoading }>
|
|
<GridItem fontWeight={ 600 }>Timestamp</GridItem>
|
|
<GridItem overflow="hidden">
|
|
<DetailedInfoTimestamp timestamp={ l1Timestamp } isLoading={ isLoading } flexWrap={{ base: 'wrap', lg: 'nowrap' }}/>
|
|
</GridItem>
|
|
<GridItem fontWeight={ 600 }>{ layerLabels.parent } txn hash{ l1TxHashes.length > 1 ? 'es' : '' }</GridItem>
|
|
<GridItem overflow="hidden" display="flex" flexDir="column" rowGap={ 2 }>
|
|
{ l1TxHashes.map((hash) => <TxEntityL1 key={ hash } hash={ hash } noIcon/>) }
|
|
</GridItem>
|
|
</OptimisticL2TxnBatchBlobWrapper>
|
|
|
|
);
|
|
};
|
|
|
|
export default React.memo(OptimisticL2TxnBatchBlobCallData);
|