From b147c8e5df75bdeafb1f0eeb2e6ce08e0dec7e37 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 5 Oct 2024 18:16:19 +0000 Subject: feature: Persevere the source URL of clipped texts from the extension. Fixes #448 --- .../components/dashboard/bookmarks/FooterLinkURL.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/web/components/dashboard/bookmarks/FooterLinkURL.tsx (limited to 'apps/web/components/dashboard/bookmarks/FooterLinkURL.tsx') diff --git a/apps/web/components/dashboard/bookmarks/FooterLinkURL.tsx b/apps/web/components/dashboard/bookmarks/FooterLinkURL.tsx new file mode 100644 index 00000000..cc91a7e7 --- /dev/null +++ b/apps/web/components/dashboard/bookmarks/FooterLinkURL.tsx @@ -0,0 +1,18 @@ +import Link from "next/link"; + +export default function FooterLinkURL({ url }: { url: string | null }) { + if (!url) { + return null; + } + const parsedUrl = new URL(url); + return ( + + {parsedUrl.host} + + ); +} -- cgit v1.2.3-70-g09d2