2021-12-03 20:37:38 +01:00
|
|
|
import React from 'react';
|
2022-03-17 22:18:41 +01:00
|
|
|
import { useSelector } from 'react-redux';
|
2021-12-03 20:37:38 +01:00
|
|
|
import Collection from './Collection';
|
|
|
|
|
2022-03-13 22:13:36 +01:00
|
|
|
const Collections = () => {
|
2022-03-17 22:18:41 +01:00
|
|
|
const collections = useSelector((state) => state.collections.collections);
|
2022-03-13 22:13:36 +01:00
|
|
|
|
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;
|