import { Link } from '@inertiajs/react'; export type RelatedProcess = { id: number; number: string; href: string }; /** Links supplied by the native page; the server retains authority over every destination. */ export function OrderDocumentLinks({ receiptsHref = null, financialDocumentsHref = null, relatedProcesses = [], }: { receiptsHref?: string | null; financialDocumentsHref?: string | null; relatedProcesses?: RelatedProcess[]; }) { if ( !receiptsHref && !financialDocumentsHref && relatedProcesses.length === 0 ) return null; return ( ); }