import { SettingsNav } from "@/components/settings-nav"; import { ActivityIcon, KeyIcon, OrganizationIcon, PersonIcon, ServerIcon, ShieldLockIcon, SparkleIcon } from "@/components/icons"; import { Avatar } from "@/components/ui"; import { requireViewer } from "@/lib/auth"; export default async function SettingsLayout({ children }: LayoutProps<"/settings">) { const viewer = await requireViewer("/settings/profile"); return (

{viewer.name || viewer.username}

Your personal account settings

}, { href: "/settings/organizations", label: "Organizations", icon: }, { href: "/settings/keys", label: "SSH keys", icon: }, { href: "/settings/tokens", label: "API tokens", icon: }, { href: "/settings/runners", label: "Runners", icon: }, { href: "/settings/applications", label: "Connected apps", icon: }, { href: "/settings/activity", label: "Agent activity", icon: }, ]} />
{children}
); }