import { IconButton } from "@mui/material";
import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
import axios from "axios";

function PdfKillRequest({ pdf_key }) {
  return (
    <a
      rel="noreferrer"
      href={`${axios.defaults.baseURL}kill_request_pdf/?key=${pdf_key}`}
      target="_blank"
    >
      <IconButton>
        <PictureAsPdfIcon sx={{ color: "green" }} />
      </IconButton>
    </a>
  );
}

export default PdfKillRequest;
