mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-02 10:44:44 -05:00
24 lines
720 B
TypeScript
24 lines
720 B
TypeScript
import { BrowserRouter as Router } from "react-router-dom";
|
|
|
|
import { Children } from "../types/Preact";
|
|
import Locale from "./Locale";
|
|
import Theme from "./Theme";
|
|
import Intermediate from "./intermediate/Intermediate";
|
|
import Client from "./revoltjs/RevoltClient";
|
|
|
|
/**
|
|
* This component provides all of the application's context layers.
|
|
* @param param0 Provided children
|
|
*/
|
|
export default function Context({ children }: { children: Children }) {
|
|
return (
|
|
<Router basename={import.meta.env.BASE_URL}>
|
|
<Locale>
|
|
<Intermediate>
|
|
<Client>{children}</Client>
|
|
</Intermediate>
|
|
</Locale>
|
|
<Theme />
|
|
</Router>
|
|
);
|
|
}
|