import { DocumentDetail } from '@/components/documents/document-detail';
import { TrackEntityView } from '@/components/search/track-entity-view';

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

export default async function DocumentDetailPage({ params }: PageProps) {
  const { portSlug, id } = await params;
  return (
    <>
      <TrackEntityView type="document" id={id} />
      <DocumentDetail documentId={id} portSlug={portSlug} />
    </>
  );
}
