DetailJawaban.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { FormGroup } from "reactstrap";
  2. import Scrollable from "@/components/Common/Scrollable";
  3. import { API_URL } from "@/env";
  4. function DetailJawaban({ data }) {
  5. const { jawaban } = data.sanksi.keberatan;
  6. return (
  7. <>
  8. <p className="lead bb">Jawaban Permohonan Keberatan</p>
  9. <form className="form-horizontal">
  10. <FormGroup>
  11. <label md="4">Jawaban:</label>
  12. <div md="8">
  13. <h3>{jawaban.status}</h3>
  14. </div>
  15. </FormGroup>
  16. <FormGroup>
  17. <label md="4">Keterangan:</label>
  18. <div md="8">
  19. <p>{jawaban.description}</p>
  20. </div>
  21. </FormGroup>
  22. <FormGroup>
  23. <label md="4">Dokumen Jawaban:</label>
  24. <div md="8">
  25. <Scrollable height="120px" className="list-group">
  26. <table className="table table-bordered bg-transparent">
  27. <tbody>
  28. {jawaban.files.map((e) => (
  29. <tr>
  30. <td>
  31. <em className="fa-lg far fa-file-code"></em>
  32. </td>
  33. <td>
  34. <a className="text-muted" href={API_URL + e.path} target="_blank" download={e.name}>
  35. {e.name}
  36. </a>
  37. </td>
  38. </tr>
  39. ))}
  40. </tbody>
  41. </table>
  42. </Scrollable>
  43. </div>
  44. </FormGroup>
  45. </form>
  46. </>
  47. );
  48. }
  49. export default DetailJawaban;