PermohonanPT.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import Scrollable from "@/components/Common/Scrollable";
  2. import { Col, FormGroup } from "reactstrap";
  3. import { API_URL } from "@/env";
  4. function PermohonanPT({ data, title = null }) {
  5. return (
  6. <>
  7. <p className="lead bb">{title || "Permohonan dari PT"}</p>
  8. <form className="form-horizontal">
  9. <FormGroup row>
  10. <Col md="4">Dokumen Permohonan:</Col>
  11. <Col md="8">
  12. <Scrollable height="120px" className="list-group">
  13. <table className="table table-bordered bg-transparent">
  14. <tbody>
  15. {data.files.map((e) => (
  16. <tr>
  17. <td>
  18. <em className="fa-lg far fa-file-code"></em>
  19. </td>
  20. <td>
  21. <a className="text-muted" href={API_URL + e.path} target="_blank" download={e.name}>
  22. {e.name}
  23. </a>
  24. </td>
  25. </tr>
  26. ))}
  27. </tbody>
  28. </table>
  29. </Scrollable>
  30. </Col>
  31. </FormGroup>
  32. </form>
  33. </>
  34. );
  35. }
  36. export default PermohonanPT;