import { useState } from 'react' import { useContext } from 'use-context-selector' import I18n from '@/context/i18n' import { X } from '@/app/components/base/icons/src/vender/line/general' import { NOTICE_I18N } from '@/i18n/language' const MaintenanceNotice = () => { const { locale } = useContext(I18n) const [showNotice, setShowNotice] = useState(localStorage.getItem('hide-maintenance-notice') !== '1') const handleJumpNotice = () => { window.open(NOTICE_I18N.href, '_blank') } const handleCloseNotice = () => { localStorage.setItem('hide-maintenance-notice', '1') setShowNotice(false) } const titleByLocale: { [key: string]: string } = NOTICE_I18N.title const descByLocale: { [key: string]: string } = NOTICE_I18N.desc if (!showNotice) return null return (