import { Modal } from "flowbite"; import "./stylesheets/shared.css"; function createModal() { const target = document.getElementById('info-modal'); const button = document.getElementById('modal-button'); const options = { placement: 'center-center', backdrop: 'dynamic', backdropClasses: 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40', closable: true }; const new_modal = new Modal(target, options); button?.addEventListener('click', () => new_modal.hide()); return new_modal; } export function InfoModal({ text }) { return (
); }