We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cbd30 commit e4108fbCopy full SHA for e4108fb
components/PairItem.tsx
@@ -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
21
22
23
24
+ )}
25
+ <a href={url} target="_blank">
26
+ {name}
27
+ </a>
28
+ </p>
29
+ );
30
0 commit comments