2023-12-16 14:06:26 -06:00
|
|
|
import LinkCard from "@/components/LinkViews/LinkComponents/LinkCard";
|
2023-12-15 21:25:39 -06:00
|
|
|
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
|
|
|
|
|
|
|
|
export default function DefaultGridView({
|
|
|
|
links,
|
|
|
|
}: {
|
|
|
|
links: LinkIncludingShortenedCollectionAndTags[];
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<div className="grid 2xl:grid-cols-3 xl:grid-cols-2 grid-cols-1 gap-5">
|
|
|
|
{links.map((e, i) => {
|
|
|
|
return <LinkCard key={i} link={e} count={i} />;
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|