2023-12-16 14:06:26 -06:00
|
|
|
import LinkCardGrid from "@/components/LinkViews/LinkComponents/LinkCardGrid";
|
2023-12-17 16:06:55 -06:00
|
|
|
import {LinkIncludingShortenedCollectionAndTags} from "@/types/global";
|
2023-12-16 14:06:26 -06:00
|
|
|
|
|
|
|
export default function CompactGridView({
|
|
|
|
links,
|
|
|
|
}: {
|
|
|
|
links: LinkIncludingShortenedCollectionAndTags[];
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<div className="columns-1 xl:columns-2 2xl:columns-3 gap-5">
|
|
|
|
{links.map((e, i) => {
|
|
|
|
return (
|
2023-12-17 16:06:55 -06:00
|
|
|
<div key={i} className="break-inside-avoid mb-5">
|
|
|
|
<LinkCardGrid link={e} count={i}/>
|
2023-12-16 14:06:26 -06:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|