link compact list view

This commit is contained in:
Yee Jia Wei
2023-12-16 11:25:39 +08:00
parent f8ad08f5ed
commit bcfbdf3e49
14 changed files with 803 additions and 292 deletions
+24
View File
@@ -0,0 +1,24 @@
import LinkRow from "@/components/LinkViews/LinkRow";
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
export default function ListView({
links,
}: {
links: LinkIncludingShortenedCollectionAndTags[];
}) {
return (
<div>
<div className="flex flex-col border border-neutral-content bg-base-200 rounded-md">
{links.map((e, i) => {
return <LinkRow key={i} link={e} count={i} />;
})}
{links.map((e, i) => {
return <LinkRow key={i} link={e} count={i} />;
})}
{links.map((e, i) => {
return <LinkRow key={i} link={e} count={i} />;
})}
</div>
</div>
);
}