"use client";
import Image from "next/image";
import Link from "next/link";
import type { ZBookmarkTypeAsset } from "@hoarder/shared/types/bookmarks";
import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils";
import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard";
function AssetImage({
bookmark,
className,
}: {
bookmark: ZBookmarkTypeAsset;
className?: string;
}) {
const bookmarkedAsset = bookmark.content;
switch (bookmarkedAsset.assetType) {
case "image": {
return (
);
}
case "pdf": {
return (
);
}
default: {
const _exhaustiveCheck: never = bookmarkedAsset.assetType;
return ;
}
}
}
export default function AssetCard({
bookmark: bookmarkedAsset,
className,
}: {
bookmark: ZBookmarkTypeAsset;
className?: string;
}) {
return (
(
)}
/>
);
}