initialize project

This commit is contained in:
somrat sorkar
2023-04-17 12:50:29 +06:00
commit 8badd3f3e7
106 changed files with 4564 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { useEffect, useState } from 'react';
const useTheme = (): string => {
const [themeValue, setThemeValue] = useState("");
useEffect(() => {
setThemeValue(document.documentElement.classList.contains('dark')? 'dark' : 'light');
}, []);
return themeValue;
};
export default useTheme;