import { FC } from 'react'
import { Paths } from '@/utils/Paths'
import { Routes, Route } from 'react-router-dom'
import Home from '@/pages/home/Home'
import ReceivedList from '@/pages/received/List'
import Setting from '@/pages/setting/Setting'
import SentList from '@/pages/sent/List'
import DraftList from '@/pages/draft/List'
import ArchiveList from '@/pages/archive/List'
import TrashList from '@/pages/Trash/List'
import DetailEmail from '@/pages/received/Detail'
const AppRouter: FC = () => {
    return (
        <Routes>
            <Route path='/' element={<Home />} />
            <Route path={Paths.received} element={<ReceivedList />} />
            <Route path={Paths.setting} element={<Setting />} />
            <Route path={Paths.sent} element={<SentList />} />
            <Route path={Paths.draft} element={<DraftList />} />
            <Route path={Paths.archive} element={<ArchiveList />} />
            <Route path={Paths.trash} element={<TrashList />} />
            <Route path={Paths.detailEmail + ':id'} element={<DetailEmail />} />
        </Routes>
    )
}

export default AppRouter