Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

567 B
Raw Blame
import type { SettingsPageId } from "@/state/store";

export const SETTINGS_PAGE_IDS = [
  "overview",
  "devices",
  "ai",
  "bots",
  "desktops",
  "vault",
  "usage",
  "transfer",
  "storage",
  "data",
  "people",
  "installations",
  "features",
  "account",
  "plan",
  "app",
  "general",
  "appearance",
] as const satisfies readonly SettingsPageId[];

const SETTINGS_PAGE_SET = new Set<string>(SETTINGS_PAGE_IDS);

export const isSettingsPage = (id: string | null | undefined): id is SettingsPageId =>
  typeof id === "string" && SETTINGS_PAGE_SET.has(id);