import React, { useState, useEffect } from 'react'; import useTranslation from 'next-translate/useTranslation' import { faUserClock } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useRouter } from 'next/router' export default function Modal() { const [showModal, setShowModal] = React.useState(false); const router = useRouter() const { locale, locales, defaultLocale, pathname } = router const { t, lang } = useTranslation("common") const close = t('common:close') return ( <> {showModal ? ( <>