import { Card, CardContent } from "@/components/ui/card"; type TagStat = { name: string; count: number }; type Props = { tagStats: TagStat[]; }; export default function ContentCategory({ tagStats }: Props) { return (

Tag Populer

{tagStats.length === 0 ? (

Tag akan muncul setelah ada artikel yang dipublikasikan.

) : ( {tagStats.map((item, index) => (
{item.name}
{item.count}
))} )}
); }