add global styling settings and refresh
This commit is contained in:
1 parent
ab9dfff33f
commit
41fa7ddf73
25 files changed
+2306
-269
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { useContext } from "react";
|
||||
import { ThemeContext } from "./ThemeContextBase";
|
||||
|
||||
function useTheme() {
|
||||
const context = useContext(ThemeContext);
|
||||
if (!context) {
|
||||
throw new Error("useTheme must be used within ThemeProvider.");
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
export { useTheme };
|
||||
Reference in new issue
Block a user