import { Link } from '@inertiajs/react'; export type PublicDocument = { id: number; title: string; description: string | null; issuer: string | null; document_number: string | null; document_date: string | null; applicable_from: string | null; applicable_until: string | null; source_url: string | null; source_confirmation: string; usage_notice: string | null; view_url: string | null; download_url: string; context_actions: { href: string; label: string }[]; }; export function PublicDocumentContent({ resource: r, detail = false, back = '/documentos', }: { resource: PublicDocument; detail?: boolean; back?: string; }) { return ( <> {detail ? (
{r.description}
)}{r.usage_notice}
)}