aboutsummaryrefslogtreecommitdiff
path: root/extension/src/Bookmark.tsx
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2024-10-15 23:20:33 -0400
committersowgro <tpoke.ferrari@gmail.com>2024-10-15 23:20:33 -0400
commitf24cfc32734a168254f0c0e4889a989bb69ee444 (patch)
tree629f0eddce0442283084e2e1910f661ed0e8a1c0 /extension/src/Bookmark.tsx
parent0eb5b8dcd94453e0aed45001e29761bd1d6c0b0e (diff)
downloadbookmarks-home-f24cfc32734a168254f0c0e4889a989bb69ee444.tar.gz
bookmarks-home-f24cfc32734a168254f0c0e4889a989bb69ee444.tar.bz2
bookmarks-home-f24cfc32734a168254f0c0e4889a989bb69ee444.zip
populate widgets with actual bookmarks
Diffstat (limited to 'extension/src/Bookmark.tsx')
-rw-r--r--extension/src/Bookmark.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/extension/src/Bookmark.tsx b/extension/src/Bookmark.tsx
new file mode 100644
index 0000000..d9652a4
--- /dev/null
+++ b/extension/src/Bookmark.tsx
@@ -0,0 +1,16 @@
+interface BookmarkProps {
+ name: string;
+ url: string;
+ icon: string;
+}
+
+function Bookmark(props: BookmarkProps) {
+ return(
+ <a className="bookmark" href={props.url}>
+ <img alt="Bookmark icon" src={props.icon}></img>
+ <span>{props.name}</span>
+ </a>
+ );
+}
+
+export default Bookmark; \ No newline at end of file