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