mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-20 12:09:36 +02:00
20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
|
import classes from './BookmarkGrid.module.css';
|
||
|
|
||
|
import { Bookmark, Category } from '../../../interfaces';
|
||
|
|
||
|
import BookmarkCard from '../BookmarkCard/BookmarkCard';
|
||
|
|
||
|
interface ComponentProps {
|
||
|
categories: Category[];
|
||
|
}
|
||
|
|
||
|
const BookmarkGrid = (props: ComponentProps): JSX.Element => {
|
||
|
return (
|
||
|
<div className={classes.BookmarkGrid}>
|
||
|
{props.categories.map((category: Category): JSX.Element => <BookmarkCard category={category} key={category.id} />)}
|
||
|
</div>
|
||
|
)
|
||
|
|
||
|
}
|
||
|
|
||
|
export default BookmarkGrid;
|