import { Card } from '@/components/ui/card'; import { ExternalLink, Link2 } from 'lucide-react'; import { motion } from 'framer-motion'; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; interface Source { title: string; url: string; snippet: string; } interface SourceListProps { sources: Source[]; } export function SourceList({ sources }: SourceListProps) { return (

Sources

{sources.map((source, index) => ( window.open(source.url, '_blank')} >

{source.title.replace(/\*\*/g, '')}

{source.snippet && (

{source.snippet.replace(/\*\*/g, '')}

)}
{new URL(source.url).hostname.replace('www.', '')}
))}
); }