export default function DocumentViewer({ document, onClose }) {
if (!document) {
return (
Select a document
Click on a search result to view the full transcript.
)
}
const tags = document.tags?.split(',').map(t => t.trim()) || []
return (
{document.title}
{document.date || 'Unknown Date'}
{document.source_url && (
Source
)}
{tags.map((tag, i) => (
#{tag}
))}
)
}