Files
upstream-jitsi-meet/react/features/whiteboard/components/web/WhiteboardLimitDialog.tsx
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

40 lines
1.2 KiB
TypeScript

import React from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import Dialog from '../../../base/ui/components/web/Dialog';
import { getWhiteboardConfig } from '../../functions';
/**
* Component that renders the whiteboard user limit dialog.
*
* @returns {JSX.Element}
*/
const WhiteboardLimitDialog = () => {
const { t } = useTranslation();
const { limitUrl } = useSelector(getWhiteboardConfig);
return (
<Dialog
cancel = {{ hidden: true }}
ok = {{ hidden: true }}
titleKey = { t('dialog.whiteboardLimitTitle') }>
<span>{t('dialog.whiteboardLimitContent')}</span>
{limitUrl && (
<span>
{` ${t('dialog.whiteboardLimitReference')} `}
<a
href = { limitUrl }
rel = 'noopener noreferrer'
target = '_blank'>
{t('dialog.whiteboardLimitReferenceUrl')}
</a>
.
</span>
)}
</Dialog>
);
};
export default WhiteboardLimitDialog;