%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/js/components/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/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")} <Link href={termsLink} color="primary" target="_blank" > {t("agree.part2")} </Link> {t("agree.part3")} <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);