import React from 'react'; interface MainMenuProps { onSectionSelect: (section: string) => void; employee: any; } const MainMenu: React.FC = ({ onSectionSelect, employee }) => { console.log('🔵 MainMenu компонент рендерится!'); const menuItems = [ { id: 'employee-info', emoji: '📋' } ]; const menuItems_2 = [ { id: 'finance', title: 'Финансы', emoji: '💰' }, { id: 'medicine', title: 'Медицина', emoji: '🏥' }, { id: 'trade-union', title: 'Профсоюз', emoji: '🤝' }, { id: 'labor-safety', title: 'Охрана труда', emoji: '⛑️' }, { id: 'contacts', title: 'Контакты', emoji: '📞' }, { id: 'news', title: 'Новости', emoji: '📰' }, { id: 'profile', title: 'Обо мне', emoji: '👤' }, ]; return (
{employee && (
Приветствуем Вас, {employee.ima} {employee.famaly}
)}

Выберите раздел

{menuItems.map((item) => ( ))}
{menuItems_2.map((item) => ( ))}
); }; console.log('🟢 MainMenu.tsx экспорт готов'); export default MainMenu;