"use client"; import BigBlueButton from "./BigBlueButton"; import { useTranslation } from "react-i18next"; export default function Modal({ children, onClose }) { const { t } = useTranslation(); return (
{ if (e.target === e.currentTarget) onClose(); }} onKeyDown={(e) => { if (e.key === 'Escape') onClose(); }} role="dialog" aria-modal="true" tabIndex={-1} >
{children}
{t('close')}
); }