el.xwx.moe/components/LinkViews/Layouts/GridView.tsx

17 lines
437 B
TypeScript
Raw Normal View History

import LinkGrid from "@/components/LinkViews/LinkGrid";
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
2023-12-16 14:06:26 -06:00
2023-12-21 04:11:26 -06:00
export default function GridView({
2023-12-16 14:06:26 -06:00
links,
}: {
links: LinkIncludingShortenedCollectionAndTags[];
}) {
return (
2023-12-21 09:55:07 -06:00
<div className="grid 2xl:grid-cols-3 xl:grid-cols-2 grid-cols-1 gap-5">
2023-12-16 14:06:26 -06:00
{links.map((e, i) => {
2023-12-21 09:55:07 -06:00
return <LinkGrid link={e} count={i} key={i} />;
2023-12-16 14:06:26 -06:00
})}
</div>
);
}