import React, { useState } from 'react'; import { Button, Modal } from 'antd'; const App: React.FC = () => { const [open, setOpen] = useState(false); const showModal = () => { setOpen(true); }; const handleOk = (e: React.MouseEvent) => { console.log(e); setOpen(false); }; const handleCancel = (e: React.MouseEvent) => { console.log(e); setOpen(false); }; return ( <>

Some contents...

Some contents...

Some contents...

); }; export default App;