2021-06-23 09:52:33 -04:00
|
|
|
import { BrowserRouter as Router } from "react-router-dom";
|
2021-06-18 12:57:08 -04:00
|
|
|
|
2021-07-05 06:23:23 -04:00
|
|
|
import State from "../redux/State";
|
|
|
|
|
|
|
|
import { Children } from "../types/Preact";
|
2021-06-18 12:57:08 -04:00
|
|
|
import Locale from "./Locale";
|
2021-07-05 06:23:23 -04:00
|
|
|
import Settings from "./Settings";
|
2021-06-18 12:57:08 -04:00
|
|
|
import Theme from "./Theme";
|
2021-07-05 06:23:23 -04:00
|
|
|
import Voice from "./Voice";
|
|
|
|
import Intermediate from "./intermediate/Intermediate";
|
|
|
|
import Client from "./revoltjs/RevoltClient";
|
2021-06-18 12:57:08 -04:00
|
|
|
|
|
|
|
export default function Context({ children }: { children: Children }) {
|
2021-07-05 06:25:20 -04:00
|
|
|
return (
|
|
|
|
<Router>
|
|
|
|
<State>
|
2021-07-29 16:01:03 -04:00
|
|
|
<Theme>
|
|
|
|
<Settings>
|
|
|
|
<Locale>
|
|
|
|
<Intermediate>
|
|
|
|
<Client>
|
2021-07-30 17:40:49 -04:00
|
|
|
<Voice>{children}</Voice>
|
2021-07-29 16:01:03 -04:00
|
|
|
</Client>
|
|
|
|
</Intermediate>
|
|
|
|
</Locale>
|
|
|
|
</Settings>
|
|
|
|
</Theme>
|
2021-07-05 06:25:20 -04:00
|
|
|
</State>
|
|
|
|
</Router>
|
|
|
|
);
|
2021-06-18 12:57:08 -04:00
|
|
|
}
|