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

NotAllowedChat.js 753B

123456789101112131415161718192021222324252627282930
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import {
  4. NotAllowedChatContainer,
  5. NotAllowedChatText,
  6. } from "./NotAllowedChat.styled";
  7. import { useTranslation } from "react-i18next";
  8. const NotAllowedChat = (props) => {
  9. const { t } = useTranslation();
  10. return (
  11. <NotAllowedChatContainer>
  12. <NotAllowedChatText>
  13. {props.mineProfileBlocked
  14. ? t("profile.mineProfileBlocked")
  15. : props.blocked
  16. ? t("profile.blockedProfile")
  17. : t("messages.notAllowedChat")}
  18. </NotAllowedChatText>
  19. </NotAllowedChatContainer>
  20. );
  21. };
  22. NotAllowedChat.propTypes = {
  23. children: PropTypes.node,
  24. blocked: PropTypes.bool,
  25. mineProfileBlocked: PropTypes.bool,
  26. };
  27. export default NotAllowedChat;