"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignalFieldBasicExample = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var react_experiments_1 = require("@fluentui/react-experiments");
var example_data_1 = require("@fluentui/example-data");
var react_1 = require("@fluentui/react");
var text = example_data_1.lorem(4);
var SignalFieldBasicExample = /** @class */ (function (_super) {
    tslib_1.__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(react_1.Checkbox, { label: "Wide?", onChange: this._onModeChange, checked: this.state.mode === 'wide' }),
            React.createElement(react_experiments_1.SignalField, { signalsFieldMode: this.state.mode, before: [React.createElement(react_experiments_1.YouCheckedOutSignal, { key: "a" })], after: [React.createElement(react_experiments_1.AwaitingApprovalSignal, { key: "b" })] }, text)));
    };
    return SignalFieldBasicExample;
}(React.Component));
exports.SignalFieldBasicExample = SignalFieldBasicExample;
//# sourceMappingURL=SignalField.Basic.Example.js.map