diff --git a/client/components/blog/BlogTrendingRail.tsx b/client/components/blog/BlogTrendingRail.tsx new file mode 100644 index 00000000..d1869140 --- /dev/null +++ b/client/components/blog/BlogTrendingRail.tsx @@ -0,0 +1,66 @@ +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;