Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 17x 9x 8x 8x | import { isEmpty } from "lodash";
import React from "react";
import { BookmarkSectionsProps } from "@overworld/bookmarks";
import BookmarkSectionContainer from "../../container/BookmarkSectionContainer";
import "./BookmarkSections.css";
interface Props {
bookmarkSections: BookmarkSectionsProps;
}
export default function BookmarkSections({ bookmarkSections }: Props) {
if (isEmpty(bookmarkSections)) {
return (
<div className="bookmark-section-message">
Add a bookmark section to begin organizing bookmarks.
</div>
);
}
return (
<div className="bookmark-section-list">
{Object.keys(bookmarkSections).map((id) => (
<BookmarkSectionContainer key={id} bookmarkSectionId={Number(id)} />
))}
</div>
);
}
|