// Shared sub-header across /admin pages — signed-in identity on the left, // pill-style nav on the right. Pass `current` so the active pill renders // with the filled style. Server component; no client state. import Link from 'next/link'; import { prodigiDashboardUrl } from '@/app/lib/prodigi-dashboard'; const NAV_ITEMS = [ { href: '/admin', label: 'Commissions', key: 'commissions' }, { href: '/admin/reviews', label: 'Reviews', key: 'reviews' }, { href: '/admin/images', label: 'CDN images', key: 'images' }, { href: '/admin/pinterest', label: 'Pinterest', key: 'pinterest' }, ] as const; export type AdminNavKey = (typeof NAV_ITEMS)[number]['key']; export function AdminNav({ email, current }: { email: string; current: AdminNavKey }) { return ( ); }