import Link from 'next/link'; interface AdminDiagnosticBannerProps { slug: string; subpageName?: string; configuredAlbumCount?: number; reason?: string; } export function AdminDiagnosticBanner({ slug, subpageName, configuredAlbumCount = 0, reason, }: AdminDiagnosticBannerProps) { return (
⚠️

Admin Diagnostic: Subpage loaded with 0 photos

The subpage /{slug} {subpageName ? `("${subpageName}")` : ''} is active in{' '} gallery.yaml {configuredAlbumCount > 0 ? `, and configured with ${configuredAlbumCount} album(s)` : ''} , but Immich returned no accessible albums or assets.

{reason && (
{reason}
)}

Possible Causes & Checklist:

🔄 Force Reload Fresh (?fresh=1) ⚙️ Open Page Builder (/admin) Back to Gallery
); }