mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-04 22:00:41 +01:00
20 lines
485 B
JavaScript
20 lines
485 B
JavaScript
import React from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import Collection from './Collection';
|
|
|
|
const Collections = () => {
|
|
const collections = useSelector((state) => state.collections.collections);
|
|
|
|
return (
|
|
<div className="mt-4 flex flex-col">
|
|
{collections && collections.length ? collections.map((c) => {
|
|
return <Collection
|
|
collection={c}
|
|
key={c.uid}
|
|
/>
|
|
}) : null}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Collections; |