import type { FC } from 'react'; import { useBookmarkContext } from '~/Providers/BookmarkContext'; import BookmarkItem from './BookmarkItem'; interface BookmarkItemsProps { tags: string[]; handleSubmit: (tag: string) => Promise; header: React.ReactNode; highlightSelected?: boolean; } const BookmarkItems: FC = ({ tags, handleSubmit, header, highlightSelected, }) => { const { bookmarks } = useBookmarkContext(); return ( <> {header}
{bookmarks.map((bookmark) => ( ))} ); }; export default BookmarkItems;