feat: themes
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { useLayoutEffect } from "react";
|
||||
import { applyTheme, initializeTheme } from "../utils/apply.theme";
|
||||
|
||||
export const ThemeInitialProvider: React.FC<{ children: React.ReactNode }> = ({
|
||||
children,
|
||||
}) => {
|
||||
useLayoutEffect(() => {
|
||||
const theme = initializeTheme();
|
||||
applyTheme(theme);
|
||||
}, []);
|
||||
|
||||
return children;
|
||||
};
|
||||
Reference in New Issue
Block a user