define(["require", "exports", "react", "@fluentui/react-next/lib/index"], function (require, exports, React, index_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var items = [
        { key: 'Header1', text: 'First heading', itemType: index_1.SelectableOptionMenuItemType.Header },
        { key: 'A', text: 'Option A' },
        { key: 'B', text: 'Option B' },
        { key: 'C', text: 'Option C' },
        { key: 'D', text: 'Option D' },
        { key: 'divider', text: '-', itemType: index_1.SelectableOptionMenuItemType.Divider },
        { key: 'Header2', text: 'Second heading', itemType: index_1.SelectableOptionMenuItemType.Header },
        { key: 'E', text: 'Option E' },
        { key: 'F', text: 'Option F', disabled: true },
        { key: 'G', text: 'Option G' },
        { key: 'H', text: 'Option H' },
        { key: 'I', text: 'Option I' },
        { key: 'J', text: 'Option J' },
    ];
    var comboBoxStyle = { maxWidth: 300 };
    exports.ComboBoxControlledExample = function () {
        var _a = React.useState('C'), selectedKey = _a[0], setSelectedKey = _a[1];
        var onChange = React.useCallback(function (ev, option) {
            var _a;
            setSelectedKey((_a = option) === null || _a === void 0 ? void 0 : _a.key);
        }, [setSelectedKey]);
        return (React.createElement(index_1.ComboBox, { style: comboBoxStyle, selectedKey: selectedKey, label: "Controlled single-select ComboBox (allowFreeform: T)", allowFreeform: true, autoComplete: "on", options: items, onChange: onChange }));
    };
});
//# sourceMappingURL=ComboBox.Controlled.Example.js.map