import { Flex } from '@chakra-ui/react'; import React from 'react'; import CodeEditorTab from './CodeEditorTab'; import useThemeColors from './utils/useThemeColors'; interface Props { tabs: Array; activeTab: string; mainFile?: string; onTabSelect: (tab: string) => void; onTabClose: (tab: string) => void; } const CodeEditorTabs = ({ tabs, activeTab, mainFile, onTabSelect, onTabClose }: Props) => { const themeColors = useThemeColors(); const tabsPathChunks = React.useMemo(() => { return tabs.map((tab) => tab.split('/')); }, [ tabs ]); return ( { tabs.map((tab) => ( )) } ); }; export default React.memo(CodeEditorTabs);