import { Button, message, Popconfirm } from 'antd'; import React from 'react'; const confirm = (e: React.MouseEvent) => { console.log(e); message.success('Click on Yes'); }; const cancel = (e: React.MouseEvent) => { console.log(e); message.error('Click on No'); }; const App: React.FC = () => ( ); export default App;