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 29 30 31 32 33 34 35 36 | 16x 16x | import React from "react";
import type { BookmarkSectionsProps } from "@overworld/bookmarks";
import "../BookmarksViewComponent.css";
import AddBookmarkSectionControl from "./AddBookmarkSectionControl";
import BookmarkSections from "./BookmarkSections";
interface Props {
onSectionNameUpdate: (name: string) => void;
bookmarkSectionName: string;
createBookmarkSection: () => void;
bookmarkSections: BookmarkSectionsProps;
}
export default class BookmarksViewComponent extends React.Component<Props> {
public render() {
const {
bookmarkSectionName,
bookmarkSections,
createBookmarkSection,
onSectionNameUpdate,
} = this.props;
return (
<div>
<h2 style={{ fontSize: "1.5rem" }}>Collections</h2>
<AddBookmarkSectionControl
bookmarkSectionName={bookmarkSectionName}
createBookmarkSection={createBookmarkSection}
onSectionNameUpdate={onSectionNameUpdate}
/>
<BookmarkSections bookmarkSections={bookmarkSections} />
</div>
);
}
}
|