export type AdminTab = "users" | "content" | "security" | "diagnostics" | "activity";

export interface AdminTabConfig {
  id: AdminTab;
  label: string;
  superuserOnly?: boolean;
}

export const ADMIN_TABS: AdminTabConfig[] = [
  { id: "users", label: "Users" },
  { id: "content", label: "Content" },
  { id: "security", label: "Security", superuserOnly: true },
  { id: "diagnostics", label: "Diagnostics", superuserOnly: true },
  { id: "activity", label: "Activity" }
];

export function getVisibleAdminTabs(isSuperuser: boolean): AdminTabConfig[] {
  return ADMIN_TABS.filter((tab) => !tab.superuserOnly || isSuperuser);
}
