import React from 'react'; import { useSelector } from 'react-redux'; import Collection from './Collection'; const Collections = () => { const collections = useSelector((state) => state.collections.collections); return (
{collections && collections.length ? collections.map((c) => { return }) : null}
); }; export default Collections;