diff --git a/components/CollectionsCreateModal.js b/components/CollectionsCreateModal.js new file mode 100644 index 0000000..6eeed29 --- /dev/null +++ b/components/CollectionsCreateModal.js @@ -0,0 +1,181 @@ +import { + addCollectionTag, + handleCollectionTagKeyPress, + removeCollectionTag, +} from '../lib/collection-tag-input.js'; + +export default function CollectionsCreateModal({ + isOpen, + newCollection, + setNewCollection, + tagInput, + setTagInput, + onClose, + onCreate, +}) { + if (!isOpen) { + return null; + } + + return ( +
+
+

+ Create New List +

+
+
+ + setNewCollection({ ...newCollection, name: e.target.value })} + placeholder="Enter list name" + /> +
+
+ +