diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 6e81f74..c8e9595 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -17,9 +17,14 @@ export const Header = () => { refreshLiveEKAPData, authUser, isAdmin, + plan, handleLogout } = useApp(); + // Plan rozeti gerçek /api/me/plan yanıtından gelir (uydurma "7 gün kalan" değil). + const PLAN_ADLARI = { ucretsiz: 'Ücretsiz', pro: 'Pro', kurumsal: 'Kurumsal' }; + const planAdi = PLAN_ADLARI[plan?.plan] || 'Ücretsiz'; + const [showNotifications, setShowNotifications] = useState(false); const [showUserMenu, setShowUserMenu] = useState(false); @@ -184,15 +189,28 @@ export const Header = () => {

{authUser?.email || userProfile.company}

- + + +
+ )} + {tasma.sag && ( + + )} +
{navItems.map(item => { const Icon = item.icon; const isActive = activeTab === item.id; return (
+
); };