mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-14 11:15:02 -05:00
24 lines
742 B
TypeScript
24 lines
742 B
TypeScript
import State from "../redux/State";
|
|
import { Children } from "../types/Preact";
|
|
import { BrowserRouter } from "react-router-dom";
|
|
|
|
import Intermediate from './intermediate/Intermediate';
|
|
import ClientContext from './revoltjs/RevoltClient';
|
|
import Locale from "./Locale";
|
|
import Theme from "./Theme";
|
|
|
|
export default function Context({ children }: { children: Children }) {
|
|
return (
|
|
<State>
|
|
<Locale>
|
|
<Intermediate>
|
|
<BrowserRouter>
|
|
<ClientContext>
|
|
<Theme>{children}</Theme>
|
|
</ClientContext>
|
|
</BrowserRouter>
|
|
</Intermediate>
|
|
</Locale>
|
|
</State>
|
|
);
|
|
}
|