"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyBoardshortcut = void 0;
const react_1 = __importDefault(require("react"));
const utils_1 = require("../../utils/");
const KeyBoardshortcut = ({ keyboardShortcut, }) => {
    if ((0, utils_1.isTouchDevice)()) {
        return null;
    }
    let str = keyboardShortcut;
    if (keyboardShortcut.includes('Cmd')) {
        str = (0, utils_1.isMac)() ? str.replace('Cmd', '⌘') : str.replace('Cmd', 'Ctrl');
    }
    return react_1.default.createElement(react_1.default.Fragment, null,
        " (",
        str,
        ")");
};
exports.KeyBoardshortcut = KeyBoardshortcut;
//# sourceMappingURL=index.js.map