Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

WhiteboardLimitDialog.tsx 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import { Text, TextStyle } from 'react-native';
  4. import { useSelector } from 'react-redux';
  5. import ConfirmDialog from '../../../base/dialog/components/native/ConfirmDialog';
  6. import Link from '../../../base/react/components/native/Link';
  7. import { getWhiteboardConfig } from '../../functions';
  8. import styles from './styles';
  9. /**
  10. * Component that renders the whiteboard user limit dialog.
  11. *
  12. * @returns {JSX.Element}
  13. */
  14. const WhiteboardLimitDialog = () => {
  15. const { t } = useTranslation();
  16. const { limitUrl } = useSelector(getWhiteboardConfig);
  17. return (
  18. <ConfirmDialog
  19. cancelLabel = { 'dialog.Ok' }
  20. descriptionKey = { 'dialog.whiteboardLimitContent' }
  21. isConfirmHidden = { true }
  22. title = { 'dialog.whiteboardLimitTitle' }>
  23. {limitUrl && (
  24. <Text style = { styles.limitUrlText as TextStyle }>
  25. {` ${t('dialog.whiteboardLimitReference')}
  26. `}
  27. <Link
  28. style = { styles.limitUrl }
  29. url = { limitUrl }>
  30. {t('dialog.whiteboardLimitReferenceUrl')}
  31. </Link>
  32. .
  33. </Text>
  34. )}
  35. </ConfirmDialog>
  36. );
  37. };
  38. export default WhiteboardLimitDialog;