1 import React from 'react';
4 createRoutesFromElements,
8 } from 'react-router-dom';
10 import FullLayout from './FullLayout';
11 import Front from '../pages/Front';
12 import Technique from '../pages/Technique';
13 import Techniques from '../pages/Techniques';
14 import User from '../pages/User';
16 const router = createBrowserRouter(
17 createRoutesFromElements(
19 <Route element={<FullLayout />}>
23 /* webpackChunkName: "admin" */
29 element={<Techniques namespace="dungeons" type="dungeon" />}
33 element={<Technique basepath="dungeons" type="dungeon" />}
38 /* webpackChunkName: "events" */
45 /* webpackChunkName: "events" */
52 /* webpackChunkName: "seeds" */
58 element={<Techniques namespace="locations" type="location" />}
61 path="locations/:name"
62 element={<Technique basepath="locations" type="location" />}
65 <Route index element={<Navigate replace to="lw" />} />
69 /* webpackChunkName: "map" */
76 element={<Techniques namespace="modes" type="mode" />}
80 element={<Technique basepath="modes" type="mode" />}
84 element={<Techniques namespace="rulesets" type="ruleset" />}
88 element={<Technique basepath="rulesets" type="ruleset" />}
93 /* webpackChunkName: "events" */
99 element={<Techniques namespace="techniques" type="tech" />}
103 element={<Technique basepath="tech" type="tech" />}
106 path="tournaments/:id"
108 /* webpackChunkName: "tournament" */
109 '../pages/Tournament'
115 /* webpackChunkName: "admin" */
122 /* webpackChunkName: "twitch" */
123 '../pages/TwitchLegal'
126 <Route path="users/:id" element={<User />} />
127 <Route path="/" element={<Front />} />
128 <Route path="*" element={<Navigate to="/" />} />
133 /* webpackChunkName: "tracker" */
134 '../pages/DoorsTracker'
137 <Route path="guessing-game">
139 path="controls/:channelId?"
141 /* webpackChunkName: "guessing" */
142 '../pages/GuessingGameControls'
148 /* webpackChunkName: "guessing" */
149 '../pages/GuessingGameMonitor'
157 const AppRoutes = () => <RouterProvider router={router} />;
159 export default AppRoutes;