import { Box } from '@mui/material'; import { styled } from '@mui/material/styles'; import { TEMP_TAB_ID_PREFIX } from '../constants/tab'; import { useTabStore } from '../store/tabStore'; import { TabState, TabType } from '../types/tab'; import { TabContentView } from './TabContentView'; import { NewTabContent } from './TabTypes/NewTabContent'; const ContentContainer = styled(Box)` flex: 1; display: flex; height: 100%; position: relative; overflow: hidden; background-color: ${props => props.theme.palette.background.paper}; `; export const TabContentArea: React.FC = () => { const { tabs, activeTabId } = useTabStore(); // Get the current active tab const activeTab = activeTabId ? tabs.find(tab => tab.id === activeTabId) : null; // Render tab content if (activeTab) { return ( ); } // Render new tab page when no active tab return ( ); };