diff --git a/components/CollectionDeleteModal.js b/components/CollectionDeleteModal.js new file mode 100644 index 0000000..8cf9464 --- /dev/null +++ b/components/CollectionDeleteModal.js @@ -0,0 +1,46 @@ +import { collectionDisplayName } from '../lib/collection-vocabulary.js'; + +export default function CollectionDeleteModal({ + isOpen, + collection, + onClose, + onConfirm, +}) { + if (!isOpen || !collection) { + return null; + } + + return ( +
+ Are you sure you want to delete "{collectionDisplayName(collection)}"? This action + cannot be undone and will permanently remove all cards and data associated with this list. +
++ Make this collection discoverable by other users +
+- Make this collection discoverable by other users -
-- Are you sure you want to delete "{collectionDisplayName(collection)}"? This action cannot be undone and will permanently remove all cards and data associated with this list. -
-