import { useEffect, useState } from 'react'
import { CogIcon } from '@heroicons/react/outline'
import SettingsModal from './SettingsModal'
import Tooltip from './Tooltip'
import { useTranslation } from 'next-i18next'
const Settings = () => {
const { t } = useTranslation('common')
const [mounted, setMounted] = useState(false)
const [showSettingsModal, setShowSettingsModal] = useState(false)
// When mounted on client, now we can show the UI
useEffect(() => setMounted(true), [])
return mounted ? (
<>
{showSettingsModal ? (
setShowSettingsModal(false)}
isOpen={showSettingsModal}
/>
) : null}
>
) : (
)
}
export default Settings