bruno/renderer/components/Sidebar/Collections/index.js

20 lines
485 B
JavaScript
Raw Normal View History

2021-12-03 20:37:38 +01:00
import React from 'react';
import { useSelector } from 'react-redux';
2021-12-03 20:37:38 +01:00
import Collection from './Collection';
const Collections = () => {
const collections = useSelector((state) => state.collections.collections);
2021-12-03 20:37:38 +01:00
return (
<div className="mt-4 flex flex-col">
{collections && collections.length ? collections.map((c) => {
return <Collection
collection={c}
2022-03-13 13:13:21 +01:00
key={c.uid}
2021-12-03 20:37:38 +01:00
/>
}) : null}
</div>
);
};
export default Collections;