mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
Add Redux and reducers.
Load i18n files and add dayjs.
This commit is contained in:
15
src/context/index.tsx
Normal file
15
src/context/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import State from "../redux/State";
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
import Locale from "./Locale";
|
||||
import Theme from "./Theme";
|
||||
|
||||
export default function Context({ children }: { children: Children }) {
|
||||
return (
|
||||
<State>
|
||||
<Locale>
|
||||
<Theme>{children}</Theme>
|
||||
</Locale>
|
||||
</State>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user