// Stable identifier-only data shared by the widget settings form and the live
// preview. Display strings come from the dictionary
// (widgetDict.advanced.toolGroups.<group>.{title, description, tools[key].*}) at
// render time so they stay localized; each `toolKey` maps to
// `config.enabledTools[key]` (see `TOOL_UI_TO_OPTION_IDS` in settings-adapter)
// and must remain machine-readable English.
export type ToolGroupId =
  | "text"
  | "colors"
  | "content"
  | "navigation"
  | "advanced";

export const TOOL_GROUPS: { id: ToolGroupId; toolKeys: string[] }[] = [
  {
    id: "text",
    toolKeys: [
      "Text Size",
      "Readable Text",
      "Text Align",
      "Line Height",
      "Text Spacing",
    ],
  },
  {
    id: "colors",
    toolKeys: [
      "High Contrast",
      "Single Color",
      "Invert Colors",
      "Red Deficiency",
      "Green Deficiency",
      "Blue Deficiency",
    ],
  },
  {
    id: "content",
    toolKeys: ["Highlight Links", "Highlight Titles", "Hide Images"],
  },
  {
    id: "navigation",
    toolKeys: [
      "Large White Cursor",
      "Large Black Cursor",
      "Reading Mask",
      "Reading Guide",
    ],
  },
  {
    id: "advanced",
    toolKeys: ["Stop Animations", "Keyboard Nav", "Page Summary"],
  },
];
