revite/src/context/index.tsx

33 lines
1 KiB
TypeScript
Raw Normal View History

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-19 13:46:05 -04:00
import Intermediate from './intermediate/Intermediate';
2021-06-23 09:52:33 -04:00
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 (
2021-06-23 09:52:33 -04:00
<Router>
<State>
2021-06-24 16:07:07 -04:00
<Theme>
<Settings>
<Locale>
<Intermediate>
<Client>
<Voice>
{children}
</Voice>
</Client>
</Intermediate>
</Locale>
</Settings>
</Theme>
</State>
2021-06-23 09:52:33 -04:00
</Router>
);
}