feat: add shared collection page

This commit is contained in:
Sonny
2024-06-02 18:35:10 +02:00
committed by Sonny
parent dc54a1197d
commit 8a4f895853
15 changed files with 93 additions and 18 deletions

View File

@@ -17,7 +17,13 @@ const LinkListStyle = styled.ul({
overflowY: 'scroll',
});
export default function LinkList({ links }: { links: Link[] }) {
export default function LinkList({
links,
showControls = true,
}: {
links: Link[];
showControls?: boolean;
}) {
if (links.length === 0) {
return <NoLink />;
}
@@ -25,7 +31,7 @@ export default function LinkList({ links }: { links: Link[] }) {
return (
<LinkListStyle>
{sortByCreationDate(links).map((link) => (
<LinkItem link={link} key={link.id} showUserControls />
<LinkItem link={link} key={link.id} showUserControls={showControls} />
))}
</LinkListStyle>
);