import React from 'react';
import { BrowserRouter, Routes, Route, Navigate, NavLink } from 'react-router-dom';
import { AuthProvider, useAuth } from './context/AuthContext';
import Login from './views/Login';
import Home from './views/Home';
import Process from './views/Process';
import InteractionView from './views/InteractionView';
import SimulationRunView from './views/SimulationRunView';
import Ontology from './views/Ontology';
import InsightsView from './views/InsightsView';
import AdminDashboard from './views/AdminDashboard';
const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
const { isAuthenticated } = useAuth();
if (!isAuthenticated) return ;
return children;
};
const Navigation: React.FC = () => {
const { logout, user } = useAuth();
return (
);
};
const Layout = ({ children }: { children: React.ReactNode }) => (
<>
{children}
>
);
function App() {
return (
} />
} />
} />
} />
} />
} />
} />
} />
);
}
export default App;