import { Alert, Space } from 'antd'; import React from 'react'; const onClose = (e: React.MouseEvent) => { console.log(e, 'I was closed.'); }; const App: React.FC = () => ( ); export default App;