import React, { useState } from 'react'; import { IconPlus, IconUpload, IconFolders } from '@tabler/icons'; import { useDispatch } from 'react-redux'; import { createCollection } from 'providers/ReduxStore/slices/collections'; import Bruno from 'components/Bruno'; import CreateCollection from 'components/Sidebar/CreateCollection'; import StyledWrapper from './StyledWrapper'; const Welcome = () => { const [modalOpen, setModalOpen] = useState(false); const dispatch = useDispatch(); const handleCancel = () => setModalOpen(false); const handleConfirm = (values) => { setModalOpen(false); dispatch(createCollection(values.collectionName, values.collectionLocation)); }; return ( {modalOpen ? ( ) : null}
bruno
Opensource API Client.
Collections
Open Collection
setModalOpen(true)}>Create Collection
{/* not in mvp */} {/*
Import Collection
*/}
) }; export default Welcome;