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