We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba74600 commit 9f89733Copy full SHA for 9f89733
components/bookmark.tsx
@@ -0,0 +1,22 @@
1
+import { HeartIcon } from "@heroicons/react/24/solid"
2
+import type { BookmarkType } from "../app/bookmarks/schema"
3
+
4
+export function Bookmark(bookmark: BookmarkType) {
5
+ return (
6
+ <div className="flex items-center">
7
+ <button className="hover:scale-110 transition-transform">
8
+ <HeartIcon
9
+ className={`w-7 h-7 mr-3 ${bookmark.fav ? "text-red-500" : "text-slate-300"}`}
10
+ />
11
+ </button>
12
+ <a
13
+ href={bookmark.url}
14
+ rel="noopener noreferrer"
15
+ target="_blank"
16
+ className="hover:underline"
17
+ >
18
+ {bookmark.title} - {bookmark.url}
19
+ </a>
20
+ </div>
21
+ )
22
+}
0 commit comments