better component naming + folder structure

This commit is contained in:
daniel31x13
2023-12-21 05:08:56 -05:00
parent b7387b1e08
commit cb5e6de8b8
12 changed files with 38 additions and 36 deletions
+20
View File
@@ -0,0 +1,20 @@
import LinkGrid from "@/components/LinkViews/LinkGrid";
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
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 (
<div key={i} className="break-inside-avoid mb-5">
<LinkGrid link={e} count={i} />
</div>
);
})}
</div>
);
}