import React, { useState } from 'react'; import { Switch, Space, Drawer, Modal } from 'antd'; const App: React.FC = () => { const [drawer, setDrawer] = useState(false); const [drawer2, setDrawer2] = useState(false); const [modal, setModal] = useState(false); const [modal2, setModal2] = useState(false); return (
setDrawer(!drawer)} /> setDrawer2(!drawer2)} /> setModal(!modal)} /> setModal2(!modal2)} /> Some contents... Sub contents... Some contents... Some contents... Some contents...
); }; export default App;