import React from 'react'; import type { FlashblockItem } from 'types/client/flashblocks'; import { TableBody, TableColumnHeader, TableHeaderSticky, TableRoot, TableRow } from 'toolkit/chakra/table'; import * as SocketNewItemsNotice from 'ui/shared/SocketNewItemsNotice'; import FlashblocksTableItem from './FlashblocksTableItem'; interface Props { items: Array; newItemsNum: number | undefined; showAlertError?: boolean; onAlertLinkClick?: () => void; } const FlashblocksTable = ({ items, newItemsNum, showAlertError, onAlertLinkClick }: Props) => { return ( Block Txn Gas used { (newItemsNum !== undefined || showAlertError) && ( ) } { items.map((item) => ( )) } ); }; export default React.memo(FlashblocksTable);