Download Netflix-Clone/src/Components/CollectionOverview/CollectionOverview.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 767 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionOverview/CollectionOverview.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionOverview/CollectionOverview.js
-
curl -L -o CollectionOverview.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionOverview/CollectionOverview.js
767 Bytes
| import React from "react"; | |
| import "./CollectionOverview.scss"; | |
| import CollectionPreview from "../CollectionPreview/CollectionPreview"; | |
| import {connect} from 'react-redux'; | |
| import {selectCollectionData} from '../../Redux/Collection/collection-selectors'; | |
| const CollectionOverview = ({ movies, tvshow, collection }) => ( | |
| <div className="collection-overview"> | |
| {collection.map(items => ( | |
| <CollectionPreview | |
| key={items.id} | |
| title={items.title} | |
| start={items.start} | |
| end={items.end} | |
| movies={movies} | |
| tvshow={tvshow} | |
| /> | |
| ))} | |
| </div> | |
| ); | |
| const mapStateToProps = state => ({ | |
| collection: selectCollectionData(state) | |
| }); | |
| export default connect(mapStateToProps)(CollectionOverview); | |