Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
55 lines
1.9 KiB
TypeScript
55 lines
1.9 KiB
TypeScript
"use client";
|
|
|
|
import * as React from "react";
|
|
import Link from "next/link";
|
|
import { cn } from "@/lib/utils";
|
|
import { AppTopBar } from "@/components/app-shell/AppTopBar";
|
|
import { withoutHiddenSso } from "@/lib/sso-availability";
|
|
|
|
// MN7a: the SSO tab is left out until real SSO ships (lib/sso-availability).
|
|
const TABS = withoutHiddenSso([
|
|
{ href: "/settings/team", label: "Team" },
|
|
{ href: "/settings/billing", label: "Billing" },
|
|
{ href: "/settings/sso", label: "SSO & SCIM" },
|
|
{ href: "/settings/audit", label: "Audit log" },
|
|
{ href: "/account/api-keys", label: "API keys" },
|
|
{ href: "/settings/integrations", label: "Integrations" },
|
|
{ href: "/settings/seo", label: "SEO" },
|
|
{ href: "/settings/ad-campaigns", label: "Ad campaigns" },
|
|
{ href: "/settings/provider-keys", label: "Provider keys" },
|
|
{ href: "/settings/privacy", label: "Privacy" },
|
|
] as const);
|
|
|
|
export interface SettingsHeaderProps {
|
|
/** The active tab's href, to highlight it. */
|
|
active: string;
|
|
}
|
|
|
|
/** Shared app top bar + tab strip for the workspace settings surfaces. */
|
|
export function SettingsHeader({ active }: Readonly<SettingsHeaderProps>) {
|
|
return (
|
|
<AppTopBar>
|
|
<nav className="container flex gap-1 overflow-x-auto pb-2" aria-label="Settings">
|
|
{TABS.map((tab) => {
|
|
const isActive = tab.href === active;
|
|
return (
|
|
<Link
|
|
key={tab.href}
|
|
href={tab.href}
|
|
aria-current={isActive ? "page" : undefined}
|
|
className={cn(
|
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
isActive
|
|
? "bg-secondary text-foreground"
|
|
: "text-muted-foreground hover:bg-secondary/60 hover:text-foreground",
|
|
)}
|
|
>
|
|
{tab.label}
|
|
</Link>
|
|
);
|
|
})}
|
|
</nav>
|
|
</AppTopBar>
|
|
);
|
|
}
|