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

23 lines
493 B
JavaScript
Raw Normal View History

2021-12-03 20:37:38 +01:00
import React from 'react';
import { useStore } from 'providers/Store';
2021-12-03 20:37:38 +01:00
import Collection from './Collection';
const Collections = () => {
const [store, storeDispatch] = useStore();
const {
collections
} = store;
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;