diff --git a/components/ThemeSwitcher.tsx b/components/ThemeSwitcher.tsx index 5af10d2..c78bd72 100644 --- a/components/ThemeSwitcher.tsx +++ b/components/ThemeSwitcher.tsx @@ -1,22 +1,27 @@ "use client"; -import { MdOutlineDarkMode, MdLightbulbOutline } from "react-icons/md"; +import { MdBrightness2, MdCircle } from "react-icons/md"; import useDarkMode from "@/hooks/useDarkMode"; // TODO write tests for light/mode -// TODO new SVG for light/dark theme // TODO fix TS error on setTheme const ThemeSwitcher = () => { const [colorTheme, setTheme] = useDarkMode(); return ( - <> +
{colorTheme === "light" ? ( - setTheme("light")} /> +
setTheme("light")}> + +
+ ) : ( - setTheme("dark")} /> +
setTheme("dark")}> + +
+ )} - +
); };