diff --git a/src/views/Modals/Inputs/WriteNFCModal.jsx b/src/views/Modals/Inputs/WriteNFCModal.jsx index d71a2a3..2aad366 100644 --- a/src/views/Modals/Inputs/WriteNFCModal.jsx +++ b/src/views/Modals/Inputs/WriteNFCModal.jsx @@ -1,7 +1,9 @@ +import { CopyAll } from '@mui/icons-material' import { Box, Button, Checkbox, + Input, ListItem, Modal, ModalDialog, @@ -38,7 +40,9 @@ function WriteNFCModal({ config }) { } } else { setNfcStatus('error') - setErrorMessage('NFC is not supported by this browser.') + setErrorMessage( + 'NFC is not supported by this browser. You can still copy the URL and write it to an NFC tag using a compatible device.', + ) } } @@ -73,6 +77,22 @@ function WriteNFCModal({ config }) { ? errorMessage : 'Press the button below to write to NFC.'} + { + navigator.clipboard.writeText(getURL()) + alert('URL copied to clipboard!') + }} + /> + } + /> )} - - - - )