import Link from 'next/link'; import type { ReactNode } from 'react'; import { logoutAction } from '@/lib/admin/actions'; import { AdminNavSelect } from './nav-select'; export const ADMIN_NAV = [ { href: '/admin/overview', label: 'Overview' }, { href: '/admin/connectors', label: 'Connectors' }, { href: '/admin/runs', label: 'Runs' }, { href: '/admin/errors', label: 'Errors' }, { href: '/admin/documents', label: 'Documents' }, { href: '/admin/jobs', label: 'Jobs' }, { href: '/admin/llm-jobs', label: 'LLM jobs' }, { href: '/admin/review', label: 'Review queue' }, { href: '/admin/quality', label: 'Data quality' }, { href: '/admin/entity-resolution', label: 'Entity resolution' }, { href: '/admin/anomalies', label: 'Anomalies' }, { href: '/admin/quarantine', label: 'Quarantine' }, { href: '/admin/audit', label: 'Audit log' }, { href: '/admin/entities/duplicates', label: 'Duplicates (v1)' }, { href: '/admin/infrastructure', label: 'Infrastructure' }, { href: '/admin/cache', label: 'Cache' }, ]; /** Admin shell: header line + left nav (≥ lg) / select (mobile). Server component; the nav highlight is done by the client select and CSS-less links. */ export function AdminShell({ children, where }: { children: ReactNode; where?: string | null }) { return (
AI Atlas admin {where && · {where}}