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