import React from "react";
import { makeStyles } from "@material-ui/core/styles";

import GridContainer from "components/Grid/GridContainer.js";
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Card from "components/Card/Card.js";
import styles from "assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js";

const useStyles = makeStyles(styles);
const DataService = function ({ backend, service, ...props })  {
    const classes = useStyles();
    const services = service.map((data, index) => (
      <Grid align="center" style={{padding:"40px", marginTop:"-50px"}}>
        <Card style={{width: "20rem"}}>
          <div align="center">
            <img
              style={{height: "180px", width: "300px", display: "block"}} className={classes.imgCardTop} src={`${backend}${data.img[0]["url"]}`}/>
          </div>
        </Card>
      </Grid>
    ));
    return (
      <div className={classes.section} id="notifications">
        <div align="center">
            <h2>Our Service</h2>
        </div>
        <div>
          <GridContainer style={{padding: "40px"}} justify="center">
            {services}
          </GridContainer>
        </div>
      </div>
    );
}

export default DataService;