PermohonanPT.js 949 B

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