-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathNotImplementedModal.tsx
More file actions
33 lines (30 loc) · 988 Bytes
/
NotImplementedModal.tsx
File metadata and controls
33 lines (30 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Button, Modal } from '@iqss/dataverse-design-system'
interface NotImplementedModalProps {
show: boolean
handleClose: () => void
}
export function NotImplementedModal({ show, handleClose }: NotImplementedModalProps) {
const protocol = window.location.protocol
const host = window.location.host
const baseUrl = `${protocol}//${host}`
const modalTitle = 'Not Implemented'
return (
<Modal show={show} onHide={handleClose} size="lg" ariaLabel={modalTitle}>
<Modal.Header>
<Modal.Title>{modalTitle}</Modal.Title>
</Modal.Header>
<Modal.Body>
<p>This feature is not implemented yet in the Modern version.</p>
<p>
If you want to use this feature you can go to the original{' '}
<a href={baseUrl}>Dataverse page</a>.
</p>
</Modal.Body>
<Modal.Footer>
<Button variant="secondary" onClick={handleClose}>
Close
</Button>
</Modal.Footer>
</Modal>
)
}