import React from 'react';
import { Routes, Route, Navigate } from 'react-router-dom';
import { apiClient } from './lib/api';
import Layout from './components/Layout';
import Login from './pages/Login';
import Dashboard from './pages/Dashboard';
import Articles from './pages/Articles';
import Feeds from './pages/Feeds';
import Settings from './pages/Settings';
function App() {
const isAuthenticated = apiClient.isAuthenticated();
if (!isAuthenticated) {
return ;
}
return (
} />
} />
} />
} />
} />
} />
);
}
export default App;