"use client";
import { useTheme } from "next-themes";
import { useEffect, useState } from "react";
import { Button } from "@/components/ui/button";
function SunIcon(props: React.ComponentPropsWithoutRef<"svg">) {
return (
);
}
function MoonIcon(props: React.ComponentPropsWithoutRef<"svg">) {
return (
);
}
export function ThemeToggle() {
const { resolvedTheme, setTheme } = useTheme();
const otherTheme = resolvedTheme === "dark" ? "light" : "dark";
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
return (
);
}