aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/utils
diff options
context:
space:
mode:
authorkamtschatka <sschatka@gmail.com>2024-05-25 23:20:17 +0200
committerGitHub <noreply@github.com>2024-05-25 22:20:17 +0100
commit033e8a2d26bb0ecaa8301609960d35d3467a88f4 (patch)
tree8c899a081b1cdd31eb24ab851b7a5c9d1dec858e /apps/web/components/utils
parentbb431be02850ca37f89cc40ce958226f64fe5ad5 (diff)
downloadkarakeep-033e8a2d26bb0ecaa8301609960d35d3467a88f4.tar.zst
feature: Allow import Netscape HTML format (#163)
* [Feature request] Netscape HTML format import/export #96 added the possibility to add exported bookmarks via the webUI for ease of use * [Feature request] Netscape HTML format import/export #96 updated the documentation * Extract the parser into its own file and reuse the existing bookmark upload logic --------- Co-authored-by: kamtschatka <simon.schatka@gmx.at> Co-authored-by: MohamedBassem <me@mbassem.com>
Diffstat (limited to 'apps/web/components/utils')
-rw-r--r--apps/web/components/utils/BookmarkAlreadyExistsToast.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/web/components/utils/BookmarkAlreadyExistsToast.tsx b/apps/web/components/utils/BookmarkAlreadyExistsToast.tsx
new file mode 100644
index 00000000..66bdb17a
--- /dev/null
+++ b/apps/web/components/utils/BookmarkAlreadyExistsToast.tsx
@@ -0,0 +1,20 @@
+import Link from "next/link";
+import { ExternalLink } from "lucide-react";
+
+export default function BookmarkAlreadyExistsToast({
+ bookmarkId,
+}: {
+ bookmarkId: string;
+}) {
+ return (
+ <div className="flex items-center gap-1">
+ Bookmark already exists.
+ <Link
+ className="flex underline-offset-4 hover:underline"
+ href={`/dashboard/preview/${bookmarkId}`}
+ >
+ Open <ExternalLink className="ml-1 size-4" />
+ </Link>
+ </div>
+ );
+}