From fc7e9312d00e60171ed77c477ed91231d3dbfff9 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sun, 12 Dec 2021 17:48:47 +0100
Subject: build: move modules into subproject directory

---
 .../language-web/src/main/js/theme/ThemeProvider.tsx      | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 subprojects/language-web/src/main/js/theme/ThemeProvider.tsx

(limited to 'subprojects/language-web/src/main/js/theme/ThemeProvider.tsx')

diff --git a/subprojects/language-web/src/main/js/theme/ThemeProvider.tsx b/subprojects/language-web/src/main/js/theme/ThemeProvider.tsx
new file mode 100644
index 00000000..f5b50be1
--- /dev/null
+++ b/subprojects/language-web/src/main/js/theme/ThemeProvider.tsx
@@ -0,0 +1,15 @@
+import { observer } from 'mobx-react-lite';
+import { ThemeProvider as MaterialUiThemeProvider } from '@mui/material/styles';
+import React from 'react';
+
+import { useRootStore } from '../RootStore';
+
+export const ThemeProvider: React.FC = observer(({ children }) => {
+  const { themeStore } = useRootStore();
+
+  return (
+    <MaterialUiThemeProvider theme={themeStore.materialUiTheme}>
+      {children}
+    </MaterialUiThemeProvider>
+  );
+});
-- 
cgit v1.2.3-70-g09d2

