revite/src/context/index.tsx

25 lines
742 B
TypeScript
Raw Normal View History

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-19 13:46:05 -04:00
import Intermediate from './intermediate/Intermediate';
2021-06-18 15:07:26 -04:00
import ClientContext from './revoltjs/RevoltClient';
import Locale from "./Locale";
import Theme from "./Theme";
export default function Context({ children }: { children: Children }) {
return (
2021-06-19 13:46:05 -04:00
<State>
<Locale>
<Intermediate>
<BrowserRouter>
<ClientContext>
<Theme>{children}</Theme>
</ClientContext>
</BrowserRouter>
</Intermediate>
</Locale>
</State>
);
}