import React, { useState, useEffect } from 'react'; import { DashboardView } from '../types'; interface NavbarProps { activeView: DashboardView; onViewChange: (view: DashboardView) => void; onLogout: () => void; onBackToCoordinatorHub?: () => void; } const Navbar: React.FC = ({ activeView, onViewChange, onLogout, onBackToCoordinatorHub }) => { const [isScrolled, setIsScrolled] = useState(false); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 10); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const menuItems: { id: DashboardView; label: string }[] = [ { id: 'HOME', label: 'HOME' }, { id: 'EVENTS', label: 'EVENTS' }, { id: 'REGISTRATIONS', label: 'REGISTRATIONS' }, { id: 'PROFILE', label: 'PROFILE' }, { id: 'ABOUT', label: 'ABOUT' }, { id: 'CONTACT', label: 'CONTACT' }, ]; return ( ); }; export default Navbar;