"use client"
import { useTheme } from "next-themes"
import { useSyncExternalStore } from "react"
export default function ThemeToggle() {
const { theme, setTheme } = useTheme()
const mounted = useSyncExternalStore(
() => () => {},
() => true,
() => false,
)
if (!mounted) {
return
}
const isDark = theme === "dark"
return (
)
}