import React from 'react'; import { ExternalLink, Youtube } from 'lucide-react'; export default function SourceCard({ sources }) { if (!sources || sources.length === 0) return null; const getSourceUrl = (source) => { if (source?.url) return source.url; if (source?.video_id) return `https://www.youtube.com/watch?v=${source.video_id}`; return '#'; }; return (
{source?.title || 'Untitled'}
{previewText}
)} {source?.retrieval_tier && (