const SHORTCUTS = {
  delete: {
    id: "delete",
    keys: { metaKey: false, ctrlKey: false, shiftKey: false, altKey: false },
    key: "Backspace",
    label: "Delete",
    shortcutDisplay: "\u232B",
    category: "edit"
  },
  duplicate: {
    id: "duplicate",
    keys: { metaKey: true },
    key: "d",
    label: "Duplicate",
    shortcutDisplay: "\u2318D",
    category: "edit"
  },
  copy: {
    id: "copy",
    keys: { metaKey: true },
    key: "c",
    label: "Copy",
    shortcutDisplay: "\u2318C",
    category: "edit"
  },
  cut: {
    id: "cut",
    keys: { metaKey: true },
    key: "x",
    label: "Cut",
    shortcutDisplay: "\u2318X",
    category: "edit"
  },
  paste: {
    id: "paste",
    keys: { metaKey: true },
    key: "v",
    label: "Paste",
    shortcutDisplay: "\u2318V",
    category: "edit"
  },
  undo: {
    id: "undo",
    keys: { metaKey: true, shiftKey: false },
    key: "z",
    label: "Undo",
    shortcutDisplay: "\u2318Z",
    category: "edit"
  },
  redo: {
    id: "redo",
    keys: { metaKey: true, shiftKey: true },
    key: "z",
    label: "Redo",
    shortcutDisplay: "\u2318\u21E7Z",
    category: "edit"
  }
};
function toKeyboardShortcut(shortcutId, handler) {
  const shortcut = SHORTCUTS[shortcutId];
  return {
    keys: shortcut.keys,
    key: shortcut.key,
    handler
  };
}

export { SHORTCUTS, toKeyboardShortcut };
