2021-06-18 12:57:08 -04:00
|
|
|
import State from "../redux/State";
|
|
|
|
import { Children } from "../types/Preact";
|
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-06-19 13:46:05 -04:00
|
|
|
import Intermediate from './intermediate/Intermediate';
|
2021-06-23 09:52:33 -04:00
|
|
|
import Client from './revoltjs/RevoltClient';
|
2021-06-24 09:26:18 -04:00
|
|
|
import Settings from "./Settings";
|
2021-06-18 12:57:08 -04:00
|
|
|
import Locale from "./Locale";
|
2021-06-24 09:26:18 -04:00
|
|
|
import Voice from "./Voice";
|
2021-06-18 12:57:08 -04:00
|
|
|
import Theme from "./Theme";
|
|
|
|
|
|
|
|
export default function Context({ children }: { children: Children }) {
|
|
|
|
return (
|
2021-06-23 09:52:33 -04:00
|
|
|
<Router>
|
2021-06-22 06:56:37 -04:00
|
|
|
<State>
|
2021-06-24 09:26:18 -04:00
|
|
|
<Settings>
|
|
|
|
<Locale>
|
|
|
|
<Intermediate>
|
|
|
|
<Client>
|
|
|
|
<Voice>
|
|
|
|
<Theme>{children}</Theme>
|
|
|
|
</Voice>
|
|
|
|
</Client>
|
|
|
|
</Intermediate>
|
|
|
|
</Locale>
|
|
|
|
</Settings>
|
2021-06-22 06:56:37 -04:00
|
|
|
</State>
|
2021-06-23 09:52:33 -04:00
|
|
|
</Router>
|
2021-06-18 12:57:08 -04:00
|
|
|
);
|
|
|
|
}
|