diff --git a/application/src/pages/OperationalPage.tsx b/application/src/pages/OperationalPage.tsx new file mode 100644 index 0000000..dc44a43 --- /dev/null +++ b/application/src/pages/OperationalPage.tsx @@ -0,0 +1,42 @@ + +import React, { useState } from "react"; +import { Header } from "@/components/dashboard/Header"; +import { Sidebar } from "@/components/dashboard/Sidebar"; +import { OperationalPageContent } from '@/components/operational-page/OperationalPageContent'; +import { authService } from "@/services/authService"; +import { useNavigate } from "react-router-dom"; + +const OperationalPage = () => { + // State for sidebar collapse functionality + const [sidebarCollapsed, setSidebarCollapsed] = useState(false); + const toggleSidebar = () => setSidebarCollapsed(prev => !prev); + + // Get current user + const currentUser = authService.getCurrentUser(); + const navigate = useNavigate(); + + // Handle logout + const handleLogout = () => { + authService.logout(); + navigate("/login"); + }; + + return ( +