2023-12-21 04:08:56 -06:00
|
|
|
import LinkCard from "@/components/LinkViews/LinkCard";
|
2023-12-15 21:25:39 -06:00
|
|
|
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
|
|
|
|
|
2023-12-21 04:11:26 -06:00
|
|
|
export default function CardView({
|
2023-12-15 21:25:39 -06:00
|
|
|
links,
|
|
|
|
}: {
|
|
|
|
links: LinkIncludingShortenedCollectionAndTags[];
|
|
|
|
}) {
|
|
|
|
return (
|
2023-12-23 11:11:47 -06:00
|
|
|
<div className="grid min-[1900px]:grid-cols-4 2xl:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-5">
|
2023-12-15 21:25:39 -06:00
|
|
|
{links.map((e, i) => {
|
|
|
|
return <LinkCard key={i} link={e} count={i} />;
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|