%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/components/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/components/Agree.jsx

import React from "react";
import { func, object, string } from "prop-types";
import { withTranslation } from "react-i18next";
import {
  Grid,
  Link,
  Typography,
} from "@material-ui/core";

function Agree({
  config,
  language,
  t,
}) {
  const { termsBusiness, terms } = config.config.appConfig;
  const termsLink = termsBusiness
    ? termsBusiness[language]
    : terms[language];

  return (
    <Grid item xs={12} style={{ marginBottom: "15px" }}>
      <Typography component="p" variant="body2">
        {t("agree.part1")}
            &nbsp;
        <Link
          href={termsLink}
          color="primary"
          target="_blank"
        >
          {t("agree.part2")}
        </Link>
            &nbsp;
        {t("agree.part3")}
            &nbsp;
        <Link
          href={config.config.appConfig.privacy[language]}
          target="_blank"
        >
          {t("agree.part4")}
        </Link>
      </Typography>
    </Grid>
  );
}

Agree.propTypes = {
  language: string.isRequired,
  t: func.isRequired,
  config: object.isRequired,
};

export default withTranslation()(Agree);

Zerion Mini Shell 1.0