import React, { useState } from 'react'; import { Button, Popover } from 'antd'; const App: React.FC = () => { const [clicked, setClicked] = useState(false); const [hovered, setHovered] = useState(false); const hide = () => { setClicked(false); setHovered(false); }; const handleHoverChange = (open: boolean) => { setHovered(open); setClicked(false); }; const handleClickChange = (open: boolean) => { setHovered(false); setClicked(open); }; const hoverContent =