const getEventsMap = (context) => ({
  "template-name": {
    onChange: context.onTemplateNameChange,
  },
  "cta-deeplink-secondary-cta-0": {
    onChange: context.onLinkTypeChange,
  },
  "cta-deeplink-secondary-cta-1": {
    onChange: context.onLinkTypeChange,
  },
  "cta-deeplink-secondary-cta-12": {
    onChange: context.onLinkTypeChange,
  },
  "cta-deeplink-delete": {
    onDelete: context.deletePrimaryCTA,
  },
  "cta-deeplink2-delete": {
    onDelete: context.deletePrimaryCTA,
  },
  "secondary-cta-0-delete": {
    onDelete: context.deleteSecondaryCTA,
  },
  "secondary-cta-1-delete": {
    onDelete: context.deleteSecondaryCTA,
  },
  "secondary-cta-1-delete-ios": {
    onDelete: context.deleteSecondaryCtaIos,
  },
  "discard-button": {
    discardValues: context.discardValues,
  },
  "cancel-button": {
    cancelTemplate: context.cancelTemplate,
  },
  "copy-android-content": {
    onClick: context.copyAndroidContent,
  },
  "copy-iphone-content": {
    onClick: context.copyIphoneContent,
  },
  "save-button": {
    saveFormData: context.saveFormData,
  },
  "message-editor": {
    onChange: context.onTemplateContentChange,
  },
  "message-editor2": {
    onChange: context.onTemplateContentChange,
  },
  "message-tagList": {
    onTagSelect: context.onTagSelect,
  },
  "message-tagList2": {
    onTagSelect: context.onTagSelect,
  },
  "title-tagList": {
    onTagSelect: context.onTagSelect,
  },
  "title-tagList2": {
    onTagSelect: context.onTagSelect,
  },
  "pane": {
    onTabChange: context.onTabChange,
  },
  "cta-deeplink": {
    onChange: context.onLinkTypeChange,
  },
  "cta-deeplink2": {
    onChange: context.onLinkTypeChange,
  },
  "cta-deeplink-secondary-cta-1-select": {
    onSelect: context.showCtaKeys,
  },
  "cta-deeplink-secondary-cta-0-select": {
    onSelect: context.showCtaKeys,
  },
  "cta-deeplink-secondary-cta-1-select2": {
    onSelect: context.showCtaKeys,
  },
  "cta-deeplink-select": {
    onSelect: context.showCtaKeys,
  },
  "cta-deeplink2-select": {
    onSelect: context.showCtaKeys,
  },
  "add-pri-cta": {
    addPrimaryCta: context.addPrimaryCta,
  },
  "add-pri-cta-ios": {
    addPrimaryCta: context.addPrimaryCta,
  },
  "add-sec-cta": {
    addSecondaryCta: context.addSecondoryCta,
  },
  "add-sec-cta-2": {
    addSecondaryCta: context.addSecondoryCta,
  },
  "add-sec-cta-ios": {
    addSecondaryCtaIos: context.addSecondoryCtaIos,
  },

  "image": {
    onUpload: context.uploadImage,
  },
  "image-upload-ios": {
    onUpload: context.uploadImage,
  },
  "secondary-cta-1-table": {
    onRowClick: context.selectCtaIos,
  },
  "cta-deeplink-select-show-keys": {
    onShowCtaKeys: context.showCtaKeys,
  },
  "cta-deeplink-secondary-cta-0-select-show-keys": {
    onShowCtaKeys: context.showCtaKeys,
  },
  "cta-deeplink-secondary-cta-1-select-show-keys": {
    onShowCtaKeys: context.showCtaKeys,
  },
  "wechat-template": {
    onSelect: context.onTemplateChange,
  },
  "mobilepush-template": {
    onSelect: context.onTemplateChange,
  },
  "test-and-preview-button": {
    onClick: context.handleTestAndPreview,
  },
});
export default getEventsMap;
