|
2 | 2 |
|
3 | 3 | import { useState, useRef } from "react"; |
4 | 4 | import { Card, CardDescription, CardHeader, CardTitle } from "@serp-tools/ui/components/card"; |
5 | | -import { LucideIcon, Star, Users } from "lucide-react"; |
| 5 | +import { LucideIcon } from "lucide-react"; |
6 | 6 |
|
7 | 7 | interface ExtensionCardProps { |
8 | 8 | extension: { |
@@ -68,43 +68,13 @@ export function ExtensionCard({ extension }: ExtensionCardProps) { |
68 | 68 | className="h-6 w-6 mt-0.5 transition-colors duration-300" |
69 | 69 | style={{ color: borderColor || undefined }} |
70 | 70 | /> |
71 | | - <div className="flex-1 min-w-0"> |
72 | | - <CardTitle className="text-lg group-hover:text-primary transition-colors"> |
73 | | - {extension.name} |
74 | | - </CardTitle> |
75 | | - <div className="flex items-center gap-3 mt-1"> |
76 | | - {extension.rating && ( |
77 | | - <div className="flex items-center gap-1"> |
78 | | - <Star className="h-3 w-3 text-yellow-500 fill-current" /> |
79 | | - <span className="text-sm text-gray-600">{extension.rating}</span> |
80 | | - </div> |
81 | | - )} |
82 | | - {extension.users && ( |
83 | | - <div className="flex items-center gap-1"> |
84 | | - <Users className="h-3 w-3 text-gray-400" /> |
85 | | - <span className="text-sm text-gray-600">{extension.users}</span> |
86 | | - </div> |
87 | | - )} |
88 | | - </div> |
89 | | - </div> |
| 71 | + <CardTitle className="text-lg group-hover:text-primary transition-colors"> |
| 72 | + {extension.name} |
| 73 | + </CardTitle> |
90 | 74 | </div> |
91 | 75 | <CardDescription className="line-clamp-2"> |
92 | 76 | {extension.description} |
93 | 77 | </CardDescription> |
94 | | - {(extension.isPopular || extension.isNew) && ( |
95 | | - <div className="flex gap-2 mt-2"> |
96 | | - {extension.isPopular && ( |
97 | | - <span className="inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs font-semibold rounded"> |
98 | | - Popular |
99 | | - </span> |
100 | | - )} |
101 | | - {extension.isNew && ( |
102 | | - <span className="inline-block px-2 py-1 bg-green-100 text-green-800 text-xs font-semibold rounded"> |
103 | | - New |
104 | | - </span> |
105 | | - )} |
106 | | - </div> |
107 | | - )} |
108 | 78 | </CardHeader> |
109 | 79 | </Card> |
110 | 80 | </a> |
|
0 commit comments