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.category}
{article.title}
{article.excerpt}
{article.author.name}
Autor
{article.readTime}
);
}
return (
{article.category}
{article.readTime}
{article.title}
{article.excerpt}
{article.author.name}
);
}