import Link from 'next/link'; import type { Route } from 'next'; import { AlertCircle, Anchor, FileSearch } from 'lucide-react'; import { PageHeader } from '@/components/shared/page-header'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; /** * Berths admin index. Both sub-pages (`bulk-add`, `reconcile`) existed * pre-2026-05-22 but were only reachable via deep links from inside the * Berths list. Surfacing them on a dedicated admin landing tile so the * tools are discoverable without prior knowledge of the URL - part of * the admin IA regroup (B3 #10 Phase 2). */ export default async function BerthsAdminIndex({ params, }: { params: Promise<{ portSlug: string }>; }) { const { portSlug } = await params; const tools = [ { href: `/${portSlug}/admin/berths/bulk-add` as Route, label: 'Bulk add berths', description: 'Generate many berth rows in one wizard - set pier, prefix, mooring number range, and per-berth defaults; preview before commit.', icon: Anchor, }, { href: `/${portSlug}/admin/berths/reconcile` as Route, label: 'Reconciliation queue', description: "Berths missing required fields after import / PDF parse. Surface what's missing per row and link straight to the edit sheet.", icon: FileSearch, }, ] as const; return (
{tools.map((t) => { const Icon = t.icon; return ( {t.label} {t.description} ); })}
Not what you're looking for? For single-berth edits, browse to the{' '} Berths list {' '} and click any row. Per-berth PDF uploads + brochure assignment also live there.
); }