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); const sysId = `NODE_IDX_0${article.id.slice(0, 1)}`; if (featured) { return (
{article.title}
{article.category}
{sysId}

{article.title}

{" >> "} {article.excerpt}

{article.author.name}

{article.author.name}

ARCHITECT_INFRA_v4

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

{article.title}

{article.excerpt}

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