diff --git a/components/ThemeChanger.tsx b/components/ThemeChanger.tsx index 003b7dc..4f0dbca 100644 --- a/components/ThemeChanger.tsx +++ b/components/ThemeChanger.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react"; import { useTheme } from "next-themes"; import { Sun, Moon } from "phosphor-react"; -import Box from "./Box"; +import Button from "./Button"; const ThemeChanger = () => { const { theme, setTheme } = useTheme(); @@ -12,7 +12,8 @@ const ThemeChanger = () => { if (!mounted) return null; return ( - { setTheme(theme && theme === "light" ? "dark" : "light"); }} @@ -25,12 +26,8 @@ const ThemeChanger = () => { color: "$muted", }} > - {theme === "dark" ? ( - - ) : ( - - )} - + {theme === "dark" ? : } + ); };