import React from "react";
import Button from "@mui/material/Button";
import DialogActions from "@mui/material/DialogActions";
import DialogContent from "@mui/material/DialogContent";

function PipelineConfirm(props) {
  const { cache, back, start } = props;

  return (
    <React.Fragment>
      <DialogContent>
        <h3>Pipeline Confirm</h3>
        {JSON.stringify(cache)}
      </DialogContent>
      <DialogActions>
        <Button onClick={back}>Back</Button>
        <Button onClick={start} autoFocus>
          Start
        </Button>
      </DialogActions>
    </React.Fragment>
  );
}

export default PipelineConfirm;
