import React, { useState } from 'react'; import { Button, Drawer, Space } from 'antd'; import type { DrawerProps } from 'antd/es/drawer'; const App: React.FC = () => { const [open, setOpen] = useState(false); const [size, setSize] = useState(); const showDefaultDrawer = () => { setSize('default'); setOpen(true); }; const showLargeDrawer = () => { setSize('large'); setOpen(true); }; const onClose = () => { setOpen(false); }; return ( <> } >

Some contents...

Some contents...

Some contents...

); }; export default App;