import { useEffect, useState } from 'react'
import { CogIcon } from '@heroicons/react/outline'
import SettingsModal from './SettingsModal'
const Settings = () => {
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