implemented list view in other components as well

This commit is contained in:
daniel31x13
2023-12-17 01:25:46 -05:00
parent 4d691e0cce
commit c5b083e802
13 changed files with 237 additions and 190 deletions
@@ -6,18 +6,18 @@ import isValidUrl from "@/lib/shared/isValidUrl";
export default function LinkIcon({
link,
className,
width,
}: {
link: LinkIncludingShortenedCollectionAndTags;
className?: string;
width?: string;
}) {
const url =
isValidUrl(link.url || "") && link.url ? new URL(link.url) : undefined;
const iconClasses: string =
"bg-white text-primary shadow rounded-md border-[2px] border-white select-none z-10" +
" " +
className || "";
" " +
(width || "w-12");
return (
<div>