You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoginDescription.js 542B

1234567891011121314151617181920
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import { LoginDescription as Description } from "./LoginDescription.styled";
  4. import { useTranslation } from "react-i18next";
  5. const LoginDescription = (props) => {
  6. const { t } = useTranslation();
  7. return (
  8. <Description component="h1" variant="h6">
  9. {props.isAdmin?t("admin.login.welcomeText"):t("login.welcomeText")}
  10. </Description>
  11. );
  12. };
  13. LoginDescription.propTypes = {
  14. children: PropTypes.node,
  15. isAdmin: PropTypes.bool
  16. };
  17. export default LoginDescription;