blob: 103f97ef05c71df75e6ba5ce5b9ec15d360da48d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { ZBookmarkedLink } from "@/lib/types/api/links";
import Link from "next/link";
export default async function LinkCard({ link }: { link: ZBookmarkedLink }) {
return (
<Link href={link.url} className="border rounded-md hover:border-blue-300">
<div className="p-4">
<h2 className="text-lg font-semibold">
{link.details?.favicon && (
// eslint-disable-next-line @next/next/no-img-element
<img alt="" width="10" height="10" src={link.details?.favicon} />
)}
{link.details?.title ?? link.id}
</h2>
<p className="text-gray-600">{link.details?.description ?? link.url}</p>
</div>
</Link>
);
}
|