import { FC } from 'react'
import { Paths } from '@/utils/Paths'
import { Routes, Route } from 'react-router-dom'
import Setting from '@/pages/setting/Setting'
import Home from '@/pages/home/Home'
import List from '@/pages/setting/personality/List'
import EmailBuilder from '@/pages/email-builder/EmailBuilder'
const AppRouter: FC = () => {
    return (
        <Routes>
            <Route path='/' element={<Home />} />
            <Route path={Paths.setting} element={<Setting />} />
            <Route path={Paths.settingMailServer} element={<Setting />} />
            <Route path={Paths.settingDomain} element={<Setting />} />
            <Route path={Paths.settingAddress} element={<Setting />} />
            <Route path={Paths.settingPersonality} element={<Setting />} />
            <Route path={Paths.settingSignature} element={<Setting />} />
            <Route path={Paths.settingPersonalityList} element={<List />} />
            <Route path={`${Paths.settingPersonality}/:id`} element={<Setting />} />
            <Route path={Paths.emailBuilder} element={<EmailBuilder />} />
        </Routes>
    )
}

export default AppRouter