"use client"; import { useTheme } from "@wrksz/themes/client"; import { useEffect, useState } from "react"; export const ThemeChanger = () => { const { theme, setTheme } = useTheme(); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) { return
Loading theme...
; } return (The current theme is: {theme}