import { __extends } from "tslib";
import * as React from 'react';
import { SignalField, YouCheckedOutSignal, AwaitingApprovalSignal } from '@uifabric/experiments';
import { lorem } from '@uifabric/example-data';
import { Checkbox } from 'office-ui-fabric-react';
var text = lorem(4);
var SignalFieldBasicExample = /** @class */ (function (_super) {
    __extends(SignalFieldBasicExample, _super);
    function SignalFieldBasicExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onModeChange = function (event, checked) {
            _this.setState({
                mode: checked ? 'wide' : 'compact',
            });
        };
        _this.state = {
            mode: 'compact',
        };
        return _this;
    }
    SignalFieldBasicExample.prototype.render = function () {
        return (React.createElement("div", null,
            React.createElement(Checkbox, { label: "Wide?", onChange: this._onModeChange, checked: this.state.mode === 'wide' }),
            React.createElement(SignalField, { signalsFieldMode: this.state.mode, before: [React.createElement(YouCheckedOutSignal, { key: "a" })], after: [React.createElement(AwaitingApprovalSignal, { key: "b" })] }, text)));
    };
    return SignalFieldBasicExample;
}(React.Component));
export { SignalFieldBasicExample };
//# sourceMappingURL=SignalField.Basic.Example.js.map