import { Navigate, Route, Routes } from 'react-router-dom';
import { Main } from './layouts';
import { List as HistoryList } from './history/List';
import { List as SessionList } from './session/List';
import { List as ChatPromptList } from './chat-prompt/List';

export const App = () => {
  return (
    <Routes>
      <Route element={<Main />}>
        <Route path='/' element={<Navigate to='/chat/history/list' />}></Route>
        <Route path='history/list' element={<HistoryList />} />
        <Route path='session/list' element={<SessionList />} />
        <Route path='chat-prompt/list' element={<ChatPromptList />} />
      </Route>
    </Routes>
  );
};
