import { Link } from 'react-router-dom'; import { Article } from '../types'; import { motion } from 'motion/react'; import { Bookmark, Clock, User, ArrowRight } from 'lucide-react'; import { useBookmarks } from '../contexts/BookmarksContext'; import { cn } from '../lib/utils'; interface ArticleCardProps { article: Article; featured?: boolean; } export default function ArticleCard({ article, featured = false }: ArticleCardProps) { const { toggleBookmark, isBookmarked } = useBookmarks(); const bookmarked = isBookmarked(article.id); if (featured) { return (
{article.title}
{article.category}

{article.title}

{article.excerpt}

{article.author.name}

{article.author.name}

Autor

{article.readTime}
); } return (
{article.title}
{article.category}
{article.readTime}

{article.title}

{article.excerpt}

{article.author.name} {article.author.name}
); }