From 03b7ccaa5c152c8d7ed73374be8ad4d4d034845b Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Thu, 7 Nov 2024 12:40:42 -0500
Subject: Implement sorting and refactor

---
 extension/src/Bookmark.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 extension/src/Bookmark.tsx

(limited to 'extension/src/Bookmark.tsx')

diff --git a/extension/src/Bookmark.tsx b/extension/src/Bookmark.tsx
deleted file mode 100644
index 64c2811..0000000
--- a/extension/src/Bookmark.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
-
-function Bookmark(props: {data: BookmarkTreeNode}) {
-    
-    return(
-        <a className="bookmark draggable" href={props.data.url}>
-            <img alt="Bookmark icon" src={faviconURL(props.data.url)}></img>
-            <span>{props.data.title}</span>
-        </a>
-    );
-}
-
-function faviconURL(u: string | undefined) {
-    if (!u) return "";
-    u = new URL(u).hostname.toString();
-    const url = new URL('https://www.google.com/s2/favicons');
-    url.searchParams.set("sz", "256");
-    // u = u.split(".")[u.split(".").length-2] +"."+ u.split(".")[u.split(".").length-1]
-    url.searchParams.set("domain_url", u);
-    return url.toString();
-
-}
-
-export default Bookmark;
\ No newline at end of file
-- 
cgit v1.2.3

