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