import { useTheme } from 'next-themes' import Image from 'next/image' import { useEffect, useState } from 'react' import { ModalChangePassword } from '.' const BoxAuthSystem = () => { const { theme } = useTheme() const [isLoaded, setIsLoaded] = useState(false) useEffect(() => { if (theme) { setIsLoaded(true) } }) if (!isLoaded) return null return (