| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | 
							- import { FormGroup, Button } from "reactstrap";
 
- import Scrollable from "@/components/Common/Scrollable";
 
- import Link from "next/link";
 
- import { API_URL } from "@/env";
 
- function DetailJawaban({ data }) {
 
- 	return (
 
- 		<>
 
- 			<p className="lead bb">Jawaban Permohonan Banding</p>
 
- 			<form className="form-horizontal">
 
- 				<FormGroup>
 
- 					<label md="4">Jawaban:</label>
 
- 					<div md="8">
 
- 						<h3>{data.status}</h3>
 
- 					</div>
 
- 				</FormGroup>
 
- 				{data.dokumen.length ? (
 
- 					<FormGroup>
 
- 						<label md="4">Dokumen Jawaban:</label>
 
- 						<div md="8">
 
- 							<Scrollable height="120px" className="list-group">
 
- 								<table className="table table-bordered bg-transparent">
 
- 									<tbody>
 
- 										{data.dokumen.map((e) => (
 
- 											<tr>
 
- 												<td>
 
- 													<em className="fa-lg far fa-file-code"></em>
 
- 												</td>
 
- 												<td>
 
- 													<a className="text-muted" href={e.path} target="_blank" download={e.judul}>
 
- 														{e.judul}
 
- 													</a>
 
- 												</td>
 
- 											</tr>
 
- 										))}
 
- 									</tbody>
 
- 								</table>
 
- 							</Scrollable>
 
- 						</div>
 
- 					</FormGroup>
 
- 				) : (
 
- 					""
 
- 				)}
 
- 			</form>
 
- 			{data.status === "Ditolak" && (
 
- 				<Link
 
- 					href={{
 
- 						pathname: "/pt/dokumen-perbaikan/detail",
 
- 						query: { id: data._id },
 
- 					}}
 
- 				>
 
- 					<Button color="primary">Perbaiki Dokumen</Button>
 
- 				</Link>
 
- 			)}
 
- 		</>
 
- 	);
 
- }
 
- export default DetailJawaban;
 
 
  |