Skip to content

Commit e4108fb

Browse files
committed
add pair item component
1 parent 86cbd30 commit e4108fb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

components/PairItem.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { TypeIcon, SwatchBookIcon } from "lucide-react";
2+
3+
interface PairItemProps {
4+
url: string;
5+
name: string;
6+
variant: "font" | "theme";
7+
}
8+
9+
export default function PairItem({ url, name, variant }: PairItemProps) {
10+
return (
11+
<p className="text-sm flex flex-row items-center gap-1 hover:text-[#007ACC] transition-all">
12+
{variant === "font" ? (
13+
<TypeIcon
14+
size={16}
15+
strokeWidth={2}
16+
className="border rounded bg-transparent p-0.5"
17+
/>
18+
) : (
19+
<SwatchBookIcon
20+
size={16}
21+
strokeWidth={2}
22+
className="border rounded bg-transparent p-0.5"
23+
/>
24+
)}
25+
<a href={url} target="_blank">
26+
{name}
27+
</a>
28+
</p>
29+
);
30+
}

0 commit comments

Comments
 (0)