import NumberPicker from '..';
import Radio from '../../radio';
import React from 'react';
import ReactDOM from 'react-dom';
class Demo extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            device: 'desktop',
        };
        this.handleDeviceChange = device => {
            this.setState({
                device,
            });
        };
    }
    render() {
        return (React.createElement("div", null,
            React.createElement(Radio.Group, { shape: "button", value: this.state.device, onChange: this.handleDeviceChange },
                React.createElement(Radio, { value: "desktop" }, "desktop"),
                React.createElement(Radio, { value: "phone" }, "phone")),
            React.createElement("hr", null),
            React.createElement(NumberPicker
            // @ts-ignore
            , { 
                // @ts-ignore
                device: this.state.device })));
    }
}
ReactDOM.render(React.createElement(Demo, null), document.getElementById('number-picker-demo-10'));
