import { Link } from 'react-router-dom'; import classes from './BookmarkGrid.module.css'; import { Category } from '../../../interfaces'; import BookmarkCard from '../BookmarkCard/BookmarkCard'; interface ComponentProps { categories: Category[]; totalCategories?: number; } const BookmarkGrid = (props: ComponentProps): JSX.Element => { let bookmarks: JSX.Element; if (props.categories.length > 0) { bookmarks = (
There are no pinned categories. You can pin them from the /bookmarks menu
); } else { bookmarks = (You don't have any bookmarks. You can add a new one from /bookmarks menu
); } } return bookmarks; } export default BookmarkGrid;