export type AgIconsId =
  | "video"
  | "undo"
  | "underline"
  | "superscript"
  | "subscript"
  | "strikethrough"
  | "redo"
  | "picker-arrows"
  | "list-ordered"
  | "list-bullet"
  | "link"
  | "italic"
  | "indent-increase"
  | "indent-decrease"
  | "image"
  | "formula"
  | "direction-rtl"
  | "direction-ltr"
  | "color-text"
  | "color-background"
  | "code-block"
  | "clean-format"
  | "bold"
  | "blockquote"
  | "align-right"
  | "align-left"
  | "align-justify"
  | "align-center";

export type AgIconsKey =
  | "Video"
  | "Undo"
  | "Underline"
  | "Superscript"
  | "Subscript"
  | "Strikethrough"
  | "Redo"
  | "PickerArrows"
  | "ListOrdered"
  | "ListBullet"
  | "Link"
  | "Italic"
  | "IndentIncrease"
  | "IndentDecrease"
  | "Image"
  | "Formula"
  | "DirectionRtl"
  | "DirectionLtr"
  | "ColorText"
  | "ColorBackground"
  | "CodeBlock"
  | "CleanFormat"
  | "Bold"
  | "Blockquote"
  | "AlignRight"
  | "AlignLeft"
  | "AlignJustify"
  | "AlignCenter";

export enum AgIcons {
  Video = "video",
  Undo = "undo",
  Underline = "underline",
  Superscript = "superscript",
  Subscript = "subscript",
  Strikethrough = "strikethrough",
  Redo = "redo",
  PickerArrows = "picker-arrows",
  ListOrdered = "list-ordered",
  ListBullet = "list-bullet",
  Link = "link",
  Italic = "italic",
  IndentIncrease = "indent-increase",
  IndentDecrease = "indent-decrease",
  Image = "image",
  Formula = "formula",
  DirectionRtl = "direction-rtl",
  DirectionLtr = "direction-ltr",
  ColorText = "color-text",
  ColorBackground = "color-background",
  CodeBlock = "code-block",
  CleanFormat = "clean-format",
  Bold = "bold",
  Blockquote = "blockquote",
  AlignRight = "align-right",
  AlignLeft = "align-left",
  AlignJustify = "align-justify",
  AlignCenter = "align-center",
}

export const AG_ICONS_CODEPOINTS: { [key in AgIcons]: string } = {
  [AgIcons.Video]: "61697",
  [AgIcons.Undo]: "61698",
  [AgIcons.Underline]: "61699",
  [AgIcons.Superscript]: "61700",
  [AgIcons.Subscript]: "61701",
  [AgIcons.Strikethrough]: "61702",
  [AgIcons.Redo]: "61703",
  [AgIcons.PickerArrows]: "61704",
  [AgIcons.ListOrdered]: "61705",
  [AgIcons.ListBullet]: "61706",
  [AgIcons.Link]: "61707",
  [AgIcons.Italic]: "61708",
  [AgIcons.IndentIncrease]: "61709",
  [AgIcons.IndentDecrease]: "61710",
  [AgIcons.Image]: "61711",
  [AgIcons.Formula]: "61712",
  [AgIcons.DirectionRtl]: "61713",
  [AgIcons.DirectionLtr]: "61714",
  [AgIcons.ColorText]: "61715",
  [AgIcons.ColorBackground]: "61716",
  [AgIcons.CodeBlock]: "61717",
  [AgIcons.CleanFormat]: "61718",
  [AgIcons.Bold]: "61719",
  [AgIcons.Blockquote]: "61720",
  [AgIcons.AlignRight]: "61721",
  [AgIcons.AlignLeft]: "61722",
  [AgIcons.AlignJustify]: "61723",
  [AgIcons.AlignCenter]: "61724",
};
