el.xwx.moe/components/LinkViews/Layouts/ListView.tsx
Isaac Wise 0a77ee90a7 format
2024-02-11 01:29:11 -06:00

30 lines
670 B
TypeScript

import LinkList from "@/components/LinkViews/LinkList";
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
export default function ListView({
links,
showCheckbox = true,
editMode,
}: {
links: LinkIncludingShortenedCollectionAndTags[];
showCheckbox?: boolean;
editMode?: boolean;
}) {
return (
<div className="flex flex-col">
{links.map((e, i) => {
return (
<LinkList
key={i}
link={e}
count={i}
showCheckbox={showCheckbox}
flipDropdown={i === links.length - 1}
editMode={editMode}
/>
);
})}
</div>
);
}