1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { __assign, __rest } from "tslib";
|
17 | import classNames from "classnames";
|
18 | import * as React from "react";
|
19 | import { Classes } from "../../common";
|
20 | import { Dialog } from "../dialog/dialog";
|
21 | import { Hotkey } from "./hotkey";
|
22 | import { Hotkeys } from "./hotkeys";
|
23 | export var HotkeysDialog2 = function (_a) {
|
24 | var _b = _a.globalGroupName, globalGroupName = _b === void 0 ? "Global" : _b, hotkeys = _a.hotkeys, props = __rest(_a, ["globalGroupName", "hotkeys"]);
|
25 | return (React.createElement(Dialog, __assign({}, props, { className: classNames(Classes.HOTKEY_DIALOG, props.className) }),
|
26 | React.createElement("div", { className: Classes.DIALOG_BODY },
|
27 | React.createElement(Hotkeys, null, hotkeys.map(function (hotkey, index) { return (React.createElement(Hotkey, __assign({ key: index }, hotkey, { group: hotkey.global === true && hotkey.group == null ? globalGroupName : hotkey.group }))); })))));
|
28 | };
|
29 |
|
\ | No newline at end of file |