2021-12-03 20:37:38 +01:00
|
|
|
import React from 'react';
|
2022-03-13 22:13:36 +01:00
|
|
|
import { useStore } from 'providers/Store';
|
2021-12-03 20:37:38 +01:00
|
|
|
import Collection from './Collection';
|
|
|
|
|
2022-03-13 22:13:36 +01:00
|
|
|
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;
|