2021-06-18 12:57:08 -04:00
|
|
|
import State from "../redux/State";
|
|
|
|
import { Children } from "../types/Preact";
|
2021-06-18 15:07:26 -04:00
|
|
|
import { BrowserRouter } from "react-router-dom";
|
2021-06-18 12:57:08 -04:00
|
|
|
|
2021-06-18 15:07:26 -04:00
|
|
|
import ClientContext from './revoltjs/RevoltClient';
|
2021-06-18 12:57:08 -04:00
|
|
|
import Locale from "./Locale";
|
|
|
|
import Theme from "./Theme";
|
|
|
|
|
|
|
|
export default function Context({ children }: { children: Children }) {
|
|
|
|
return (
|
2021-06-18 15:07:26 -04:00
|
|
|
<BrowserRouter>
|
|
|
|
<State>
|
|
|
|
<ClientContext>
|
|
|
|
<Locale>
|
|
|
|
<Theme>{children}</Theme>
|
|
|
|
</Locale>
|
|
|
|
</ClientContext>
|
|
|
|
</State>
|
|
|
|
</BrowserRouter>
|
2021-06-18 12:57:08 -04:00
|
|
|
);
|
|
|
|
}
|