import React from 'react'; import { Select, Space, Switch } from 'antd'; const { _InternalPanelDoNotUseOrYouWillBeFired: InternalSelect } = Select; const App: React.FC = () => { const [open, setOpen] = React.useState(true); return ( setOpen(!open)} /> ); }; export default App;