import { useContext } from "react";
import { ThemeContext } from "@/context/Theme";
import { MoonIcon, SunIcon, SunMoonIcon } from "lucide-react";
interface Props {
inApp?: boolean;
}
function ThemeIcon({ inApp }: Props) {
const { theme, setTheme, isDark } = useContext(ThemeContext);
const onClick = () => {
const nextTheme = theme === "light" ? "dark" : theme === "dark" ? "system" : "light";
setTheme(nextTheme);
};
const getIcon = () => {
const size = inApp ? 24 : 30;
const color = inApp ? (isDark ? "white" : "black") : "white";
switch (theme) {
case "light":
return ;
case "dark":
return ;
case "system":
return ;
}
};
return (
);
}
export default ThemeIcon;