import Radio from '..';
import Switch from '../../switch';
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            disabled: true,
        };
        this.toggleDisabled = () => {
            this.setState({
                disabled: !this.state.disabled,
            });
        };
    }
    render() {
        return (React.createElement(React.Fragment, null,
            "disabled:",
            ' ',
            React.createElement(Switch, { size: "small", defaultChecked: true, onChange: this.toggleDisabled, style: { verticalAlign: 'middle' } }),
            React.createElement("br", null),
            React.createElement("br", null),
            React.createElement("br", null),
            React.createElement(Radio, { defaultChecked: false, disabled: this.state.disabled, style: { marginRight: 10 } }, "Disabled"),
            React.createElement(Radio, { defaultChecked: true, disabled: this.state.disabled }, "Disabled")));
    }
}
ReactDOM.render(React.createElement(App, null), document.getElementById('radio-demo-4'));
