import { Routes, Route, Navigate } from 'react-router-dom';
import { AppLayout } from '@/components/Layout';
import { Dashboard, UserList, CallList } from '@/pages';
import { useAuth } from '@/store';
// 导入移动端组件
import MobileLayout from '@/components/MobileLayout';
import MobileHome from '@/pages/mobile/Home';
import MobileCall from '@/pages/mobile/Call';
import MobileDocuments from '@/pages/mobile/Documents';
import MobileSettings from '@/pages/mobile/Settings';
import MobileRecharge from '@/pages/mobile/Recharge';
import MobileAppointment from '@/pages/mobile/Appointment';
// 导入设备重定向组件
import DeviceRedirect from '@/components/DeviceRedirect';
// 导入视频通话测试组件
import VideoCallTest from '@/components/VideoCallTest';
// 导入视频通话页面
import { VideoCallPage } from '@/pages/VideoCall/VideoCallPage';
// 私有路由组件
const PrivateRoute = ({ children }: { children: React.ReactNode }) => {
const { isAuthenticated } = useAuth();
return isAuthenticated ? <>{children}> :
页面不存在