'use client'; import { Button, MoonIcon, SunIcon, } from '@imphnen-frontend-service/shadcn-ui/atoms'; import { useTheme } from 'next-themes'; import { useEffect, useState } from 'react'; export function SimpleThemeToggle() { const { theme, setTheme } = useTheme(); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) { return null; } const toggleTheme = () => { setTheme(theme === 'dark' ? 'light' : 'dark'); }; return ( ); }