import { ReactNode } from 'react'; import { Navigate } from 'react-router-dom'; import { authService } from '@/services/authService'; interface ProtectedRouteProps { children: ReactNode; } export const ProtectedRoute = ({ children }: ProtectedRouteProps) => { if (!authService.isAuthenticated()) { return ; } return <>{children}; };