import React, { useEffect, useState } from 'react';
import { Button, Card, Modal } from 'react-bootstrap';
import { getActualKey } from 'utils/common/key';
import { getData, LS_KEYS } from 'utils/storage/localStorage';
import CollectionDropZone from './CollectionDropZone';
import PreviewCard from './PreviewCard';
function CollectionSelector({
uploadModalView,
closeUploadModal,
collectionLatestFile,
setProgressView,
setData,
progressBarProps,
}) {
const [token, setToken] = useState(null);
const [encryptionKey, setEncryptionKey] = useState(null);
useEffect(() => {
(async () => {
setToken(getData(LS_KEYS.USER).token);
setEncryptionKey(await getActualKey());
})();
});
const CollectionIcons = collectionLatestFile?.map((item) => (
{ }} onClick={() => { }} />
{item.collection.name}
));
return (
Select/Click on Collection to upload
{CollectionIcons}
);
}
export default CollectionSelector;