import React, { useEffect, useState } from 'react'; import { Button, Card, Modal } from 'react-bootstrap'; import { getData, LS_KEYS } from 'utils/storage/localStorage'; import CollectionDropZone from './CollectionDropZone'; import PreviewCard from './PreviewCard'; function CollectionSelector({ modalView, closeModal, collectionLatestFile, showProgress, }) { const [token, setToken] = useState(null); useEffect(() => { setToken(getData(LS_KEYS.USER).token); }); const CollectionIcons = collectionLatestFile?.map((item) => ( { }} onClick={() => { }} /> {item.collection.name} )); return ( Select/Click on Collection to upload {CollectionIcons} ); } export default CollectionSelector;