import { Link } from "react-router-dom"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent } from "@/components/ui/card"; import { Flame, MessageCircle, ThumbsUp } from "lucide-react"; import type { BlogPost } from "./types"; interface BlogTrendingRailProps { posts: BlogPost[]; } const BlogTrendingRail = ({ posts }: BlogTrendingRailProps) => { if (!posts.length) return null; return (

Trending now

High-signal reads across AeThex

Hot topics
{posts.map((post) => ( {post.category || "General"} {post.title}

{post.excerpt}

{post.author || "AeThex Team"}
{post.likes?.toLocaleString() ?? 0} {post.comments?.toLocaleString() ?? 0}
))}
); }; export default BlogTrendingRail;