"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BadgeAppearanceExample = void 0;
var React = require("react");
var react_badge_1 = require("@fluentui/react-badge");
var DisplayBadge = function (props) { return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: 4, margin: 4 } }, props.children)); };
var BadgeAppearanceExample = function () {
    var _a = React.useState(90), value = _a[0], setValue = _a[1];
    return (React.createElement(React.Fragment, null,
        React.createElement("div", { style: {
                marginBottom: 16,
            } },
            React.createElement("button", { onClick: function () {
                    if (value > 0) {
                        setValue(function (val) { return val - 1; });
                    }
                } }, "-"),
            React.createElement("button", { onClick: function () { return setValue(function (val) { return val + 1; }); } }, "+")),
        React.createElement("div", { style: {
                display: 'flex',
                justifyContent: 'space-between',
                alignItems: 'center',
                maxWidth: 200,
            } },
            React.createElement(DisplayBadge, null,
                React.createElement(react_badge_1.CounterBadge, { dot: true }),
                React.createElement(react_badge_1.CounterBadge, { count: value })),
            React.createElement(DisplayBadge, null,
                React.createElement(react_badge_1.CounterBadge, { dot: true, color: "warning" }),
                React.createElement(react_badge_1.CounterBadge, { count: value, color: "warning" })),
            React.createElement(DisplayBadge, null,
                React.createElement(react_badge_1.CounterBadge, { dot: true, color: "important" }),
                React.createElement(react_badge_1.CounterBadge, { count: value, color: "important" })),
            React.createElement(DisplayBadge, null,
                React.createElement(react_badge_1.CounterBadge, { dot: true, color: "severe" }),
                React.createElement(react_badge_1.CounterBadge, { count: value, color: "severe" })),
            React.createElement(DisplayBadge, null,
                React.createElement(react_badge_1.CounterBadge, { dot: true, color: "informative" }),
                React.createElement(react_badge_1.CounterBadge, { count: value, color: "informative" })))));
};
exports.BadgeAppearanceExample = BadgeAppearanceExample;
//# sourceMappingURL=CounterBadge.stories.js.map