main
Last change
on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
804 bytes
|
Rev | Line | |
---|
[0c6b92a] | 1 | import styles from "./DeleteConfirmationModal.module.css";
|
---|
| 2 |
|
---|
| 3 | export default function DeleteConfirmationModal({ isOpen, onClose, onDelete, maps }) {
|
---|
| 4 | if (!isOpen) return null;
|
---|
| 5 |
|
---|
| 6 | return (
|
---|
| 7 | <div className={styles.modalOverlay}>
|
---|
| 8 | <div className={styles.modalContent}>
|
---|
| 9 | <h2>Select a Map to Delete</h2>
|
---|
| 10 | <ul className={styles.mapList}>
|
---|
| 11 | {maps.map((map) => (
|
---|
| 12 | <li key={map.mapName} className={styles.mapItem}>
|
---|
| 13 | {map.mapName}
|
---|
| 14 | <button onClick={() => onDelete(map.mapName)} className={styles.deleteButton}>
|
---|
| 15 | Delete
|
---|
| 16 | </button>
|
---|
| 17 | </li>
|
---|
| 18 | ))}
|
---|
| 19 | </ul>
|
---|
| 20 | <div className={styles.modalActions}>
|
---|
| 21 | <button onClick={onClose}>Cancel</button>
|
---|
| 22 | </div>
|
---|
| 23 | </div>
|
---|
| 24 | </div>
|
---|
| 25 | );
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.