import { Routes, Route, Navigate } from 'react-router-dom' import { useAuth } from './contexts/AuthContext' import Login from './pages/Login' import Dashboard from './pages/Dashboard' import Containers from './pages/Containers' import ContainerDetail from './pages/ContainerDetail' import Oversell from './pages/Oversell' import Security from './pages/Security' import AuditLogs from './pages/AuditLogs' import ApiIntegration from './pages/ApiIntegration' import Settings from './pages/Settings' import ImageManagement from './pages/ImageManagement' import Snapshots from './pages/Snapshots' import Routing from './pages/Routing' import SubUserManagement from './pages/SubUserManagement' import Layout from './components/Layout' function ProtectedRoute({ children }: { children: React.ReactNode }) { const { isAuthenticated, isLoading } = useAuth() if (isLoading) { return (