revite/src/context/index.tsx
2021-06-24 21:07:07 +01:00

32 lines
1 KiB
TypeScript

import State from "../redux/State";
import { Children } from "../types/Preact";
import { BrowserRouter as Router } from "react-router-dom";
import Intermediate from './intermediate/Intermediate';
import Client from './revoltjs/RevoltClient';
import Settings from "./Settings";
import Locale from "./Locale";
import Voice from "./Voice";
import Theme from "./Theme";
export default function Context({ children }: { children: Children }) {
return (
<Router>
<State>
<Theme>
<Settings>
<Locale>
<Intermediate>
<Client>
<Voice>
{children}
</Voice>
</Client>
</Intermediate>
</Locale>
</Settings>
</Theme>
</State>
</Router>
);
}