import React, { useState } from 'react'; import { Button, Switch } from 'antd'; const App: React.FC = () => { const [disabled, setDisabled] = useState(true); const toggle = () => { setDisabled(!disabled); }; return ( <>
); }; export default App;