diff --git a/components/CollectionsEditModal.js b/components/CollectionsEditModal.js new file mode 100644 index 0000000..ee45ed6 --- /dev/null +++ b/components/CollectionsEditModal.js @@ -0,0 +1,182 @@ +import { + addCollectionTag, + handleCollectionTagKeyPress, + removeCollectionTag, +} from '../lib/collection-tag-input.js'; + +export default function CollectionsEditModal({ + editingCollection, + setEditingCollection, + editTagInput, + setEditTagInput, + onClose, + onUpdate, +}) { + if (!editingCollection) { + return null; + } + + return ( +
+
+

+ Edit List +

+
+
+ + setEditingCollection({ ...editingCollection, name: e.target.value })} + /> +
+
+ +