📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Added Modal component
Blaumausd90836527ff4
diff --git a/src/components/Modal/index.jsx b/src/components/Modal/index.jsxnew file mode 100644index 000000000..f1225597c--- /dev/null+++ b/src/components/Modal/index.jsx@@ -0,0 +1,22 @@+import React from 'react'+import BM from 'react-bootstrap/Modal'+import Button from 'react-bootstrap/Button'++const Modal = ({ title, text, onSubmit, onCancel, cancelText = 'Close', submitText = 'Save changes' }) => (+ <BM show={true} onHide={onCancel}>+ <BM.Header closeButton>+ <BM.Title>{title}</BM.Title>+ </BM.Header>+ <BM.Body>{text}</BM.Body>+ <BM.Footer>+ <Button variant="secondary" onClick={onCancel}>+ {cancelText}+ </Button>+ <Button variant="primary" onClick={onSubmit}>+ {submitText}+ </Button>+ </BM.Footer>+ </BM>+)++export default Modal\ No newline at end of file