import Link from 'next/link';
import { Button } from '@/components/ui/button';
import { PageHeader } from '@/components/shared/page-header';

interface PageProps {
  params: Promise<{ portSlug: string }>;
}

export default async function NewDocumentPage({ params }: PageProps) {
  const { portSlug } = await params;
  return (
    <div className="flex flex-col gap-4">
      <PageHeader
        title="New document"
        description="The create-document wizard ships in PR6 of the Phase A rollout."
        actions={
          <Button asChild variant="outline">
            <Link href={`/${portSlug}/documents`}>Back to documents</Link>
          </Button>
        }
      />
    </div>
  );
}
