import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Rss, RefreshCw, Plus, ExternalLink } from "lucide-react"; import { RssArticle } from "@/services/RssService"; interface RssSectionProps { rssArticles: RssArticle[]; paginatedRssArticles: RssArticle[]; rssPage: number; totalRssPages: number; onRefresh: () => void; onAddFeed: () => void; onPageChange: (page: number) => void; } export const RssSection = ({ paginatedRssArticles, rssPage, totalRssPages, onRefresh, onAddFeed, onPageChange }: RssSectionProps) => { return (
Flux RSS
{paginatedRssArticles.length > 0 ? ( paginatedRssArticles.map(article => (
article.link && window.open(article.link, '_blank')} >

{article.title}

{article.description && (

{article.description.replace(/<[^>]*>/g, '')}

)}
)) ) : (

Aucun article

)}
{totalRssPages > 1 && (
{rssPage + 1}/{totalRssPages}
)}
); }; export default RssSection;