import { Popover } from 'antd'; import { CloseOutlined } from '@ant-design/icons'; import React, { useState, useEffect } from 'react'; import s from './NotifyReminderPopup.module.scss'; interface Props { visible: boolean; children: React.ReactNode; notificationClicked: () => void; notificationClosed: () => void; } export default function NotifyReminderPopup(props: Props) { const { children, visible, notificationClicked, notificationClosed } = props; const [visiblePopup, setVisiblePopup] = useState(visible); const [mounted, setMounted] = useState(false); useEffect(() => { setVisiblePopup(visible); }, [visible]); useEffect(() => { setMounted(true); }, []); const title =