import { Box } from '@chakra-ui/react'; import React from 'react'; import type { FlashblockItem } from 'types/client/flashblocks'; import * as SocketNewItemsNotice from 'ui/shared/SocketNewItemsNotice'; import FlashblocksListItem from './FlashblocksListItem'; interface Props { data: Array; newItemsNum: number | undefined; showAlertError?: boolean; onAlertLinkClick?: () => void; } const FlashblocksList = ({ data, newItemsNum, showAlertError, onAlertLinkClick }: Props) => { return ( { (newItemsNum !== undefined || showAlertError) && ( ) } { data.map((item) => ( )) } ); }; export default React.memo(FlashblocksList);