From daebbf0154a290fb690ed94fca23377e0f739f53 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 7 Feb 2024 02:48:38 +0000 Subject: [ui] Very first draft of the link grid --- web/app/bookmarks/components/LinkCard.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/app/bookmarks/components/LinkCard.tsx (limited to 'web/app/bookmarks/components/LinkCard.tsx') diff --git a/web/app/bookmarks/components/LinkCard.tsx b/web/app/bookmarks/components/LinkCard.tsx new file mode 100644 index 00000000..103f97ef --- /dev/null +++ b/web/app/bookmarks/components/LinkCard.tsx @@ -0,0 +1,19 @@ +import { ZBookmarkedLink } from "@/lib/types/api/links"; +import Link from "next/link"; + +export default async function LinkCard({ link }: { link: ZBookmarkedLink }) { + return ( + +
+

+ {link.details?.favicon && ( + // eslint-disable-next-line @next/next/no-img-element + + )} + {link.details?.title ?? link.id} +

+

{link.details?.description ?? link.url}

+
+ + ); +} -- cgit v1.2.3-70-g09d2