import { __extends } from "tslib";
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Stack } from 'office-ui-fabric-react';
var ButtonToggleExample = /** @class */ (function (_super) {
    __extends(ButtonToggleExample, _super);
    function ButtonToggleExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onDefaultButtonClicked = function () {
            _this.setState({ defaultButtonToggled: !_this.state.defaultButtonToggled });
        };
        _this._onPrimaryButtonClicked = function () {
            _this.setState({ primaryButtonToggled: !_this.state.primaryButtonToggled });
        };
        _this._onDefaultCircularButtonClicked = function () {
            _this.setState({ defaultCircularButtonToggled: !_this.state.defaultCircularButtonToggled });
        };
        _this._onPrimaryCircularButtonClicked = function () {
            _this.setState({ primaryCircularButtonToggled: !_this.state.primaryCircularButtonToggled });
        };
        _this.state = {
            defaultButtonToggled: false,
            primaryButtonToggled: false,
            defaultCircularButtonToggled: false,
            primaryCircularButtonToggled: false,
        };
        return _this;
    }
    ButtonToggleExample.prototype.render = function () {
        var _a = this.state, defaultButtonToggled = _a.defaultButtonToggled, primaryButtonToggled = _a.primaryButtonToggled, defaultCircularButtonToggled = _a.defaultCircularButtonToggled, primaryCircularButtonToggled = _a.primaryCircularButtonToggled;
        var buttonStackTokens = { childrenGap: 12 };
        return (React.createElement(Stack, { horizontal: true, disableShrink: true, tokens: buttonStackTokens },
            React.createElement(Button, { content: defaultButtonToggled ? 'Muted' : 'Unmuted', checked: defaultButtonToggled, onClick: this._onDefaultButtonClicked }),
            React.createElement(Button, { primary: true, content: primaryButtonToggled ? 'Muted' : 'Unmuted', checked: primaryButtonToggled, onClick: this._onPrimaryButtonClicked }),
            React.createElement(Button, { circular: true, icon: defaultCircularButtonToggled ? 'VolumeDisabled' : 'Volume3', checked: defaultCircularButtonToggled, onClick: this._onDefaultCircularButtonClicked }),
            React.createElement(Button, { circular: true, primary: true, icon: primaryCircularButtonToggled ? 'VolumeDisabled' : 'Volume3', checked: primaryCircularButtonToggled, onClick: this._onPrimaryCircularButtonClicked })));
    };
    return ButtonToggleExample;
}(React.Component));
export { ButtonToggleExample };
//# sourceMappingURL=Button.Toggle.Example.js.map