gth})`} ); const tabs = overflowingTabs.map((tab) => ( {tab.title} )); const onTabSelect = (event: React.MouseEvent, key: number | string) => { closeMenu(); const selectedTabRef = overflowingTabs.find((tab) => tab.eventKey === key).tabContentRef; handleTabClick(event, key, selectedTabRef); }; const overflowMenu = ( onTabSelect(ev as React.MouseEvent, itemId)}> {tabs} ); return ( {overflowTab} ); }; OverflowTab.displayName = 'OverflowTab';