import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'
import Layout from './components/Layout'
import MerchantsClean from './pages/MerchantsClean'
import Tasks from './pages/Tasks'
import Keywords from './pages/Keywords'

export default function App() {
  return (
    <BrowserRouter>
      <Layout>
        <Routes>
          <Route path="/" element={<Navigate to="/merchants" replace />} />
          <Route path="/merchants" element={<MerchantsClean />} />
          <Route path="/tasks" element={<Tasks />} />
          <Route path="/keywords" element={<Keywords />} />
        </Routes>
      </Layout>
    </BrowserRouter>
  )
}
