From 14e4fed321634dc014ad2f15cafef3ed0123855e Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 23 Feb 2025 22:50:12 +0000
Subject: feat: Add a setting page to manage assets. Fixes #730

---
 apps/web/lib/attachments.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 apps/web/lib/attachments.tsx

(limited to 'apps/web/lib/attachments.tsx')

diff --git a/apps/web/lib/attachments.tsx b/apps/web/lib/attachments.tsx
new file mode 100644
index 00000000..8110d6ce
--- /dev/null
+++ b/apps/web/lib/attachments.tsx
@@ -0,0 +1,14 @@
+import { Archive, Camera, Image, Paperclip, Video } from "lucide-react";
+
+import { ZAssetType } from "@hoarder/shared/types/bookmarks";
+
+export const ASSET_TYPE_TO_ICON: Record<ZAssetType, React.ReactNode> = {
+  screenshot: <Camera className="size-4" />,
+  assetScreenshot: <Camera className="size-4" />,
+  fullPageArchive: <Archive className="size-4" />,
+  precrawledArchive: <Archive className="size-4" />,
+  bannerImage: <Image className="size-4" />,
+  video: <Video className="size-4" />,
+  bookmarkAsset: <Paperclip className="size-4" />,
+  unknown: <Paperclip className="size-4" />,
+};
-- 
cgit v1.2.3-70-g09d2

