import React, { useState } from 'react'; import { Button, Popover } from 'antd'; const App: React.FC = () => { const [open, setOpen] = useState(false); const hide = () => { setOpen(false); }; const handleOpenChange = (newOpen: boolean) => { setOpen(newOpen); }; return ( Close} title="Title" trigger="click" open={open} onOpenChange={handleOpenChange} > ); }; export default App;