import { Route, Routes } from 'react-router-dom';
import { List } from './edit/List';
import { Main } from './layouts';
import { UserList } from './edit/UserList';
import { Redirect } from '@/modules/Redirect';

export const App = () => {
  return (
    <Routes>
      <Route element={<Main />}>
        <Route path='/' element={<Redirect to='/org/edit/list' />}></Route>
        <Route path='edit/list' element={<List />} />
        <Route path='edit/user/:id' element={<UserList />} />
      </Route>
    </Routes>
  );
};
