2020-05-19 02:18:43 +03:00
|
|
|
import React from "react";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
import { Grid } from "@material-ui/core";
|
|
|
|
import { makeStyles } from "@material-ui/core/styles";
|
|
|
|
import { useTranslation } from "react-i18next";
|
2020-05-19 03:00:28 +03:00
|
|
|
import Typography from "@material-ui/core/Typography";
|
|
|
|
import Link from "@material-ui/core/Link";
|
2020-05-19 02:18:43 +03:00
|
|
|
import styles from "../../../components/common/styles/gridStyles";
|
|
|
|
|
|
|
|
const useStyles = makeStyles(styles);
|
|
|
|
|
2020-05-19 03:00:28 +03:00
|
|
|
const ServerSummary = ({ data, openAbout }) => {
|
2020-05-19 02:18:43 +03:00
|
|
|
const classes = useStyles();
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Grid container>
|
2020-05-19 03:00:28 +03:00
|
|
|
<Grid item xs={6} sm={4} md={4}>
|
2020-05-19 02:27:05 +03:00
|
|
|
{`${t("Server.Domain")}: `}
|
2020-05-19 03:25:42 +03:00
|
|
|
<span className={classes.value}>{data.domain.name}</span>
|
2020-05-19 02:18:43 +03:00
|
|
|
</Grid>
|
|
|
|
|
2020-05-19 03:00:28 +03:00
|
|
|
<Grid item xs={6} sm={4} md={4}>
|
2020-05-19 02:27:05 +03:00
|
|
|
{`${t("Server.ServerHostName")}: `}
|
|
|
|
<span className={classes.value}>{data.hosts.server}</span>
|
|
|
|
</Grid>
|
|
|
|
|
2020-05-19 03:00:28 +03:00
|
|
|
<Grid item xs={6} sm={4} md={4}>
|
2020-05-19 02:27:05 +03:00
|
|
|
{`${t("Server.ApiHostName")}: `}
|
|
|
|
<span className={classes.value}>{data.hosts.api}</span>
|
2020-05-19 02:18:43 +03:00
|
|
|
</Grid>
|
2020-05-19 03:00:28 +03:00
|
|
|
|
|
|
|
<Grid item xs={6} sm={4} md={4}></Grid>
|
|
|
|
|
|
|
|
<Grid item xs={12} sm={12} md={12}>
|
|
|
|
<Typography variant="body2" gutterBottom color="textSecondary">
|
|
|
|
{
|
|
|
|
"Bla bla bla, bla bla bla, bla bla bla, Bla bla bla, bla bla bla, bla bla bla, Bla bla bla, bla bla bla. Pentru mai multe detalii click "
|
|
|
|
}
|
|
|
|
<Link href="#" onClick={openAbout} variant="body2">
|
|
|
|
{"aici"}
|
|
|
|
</Link>
|
|
|
|
</Typography>
|
|
|
|
</Grid>
|
2020-05-19 02:18:43 +03:00
|
|
|
</Grid>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
ServerSummary.propTypes = {
|
2020-05-19 03:00:28 +03:00
|
|
|
data: PropTypes.object.isRequired,
|
|
|
|
openAbout: PropTypes.func.isRequired
|
2020-05-19 02:18:43 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export default ServerSummary;
|