import React, { Component } from "react";
import Router from "next/router";
import Link from "next/link";
import Select from "react-select";
import Scrollable from "@/components/Common/Scrollable";
import Datatable from "@/components/Tables/Datatable";
import ContentWrapper from "@/components/Layout/ContentWrapper";
import {
	Row,
	Col,
	Card,
	CardHeader,
	CardBody,
	CardTitle,
	FormGroup,
	FormFeedback,
	FormText,
	Label,
	InputGroup,
	InputGroupAddon,
	InputGroupButtonDropdown,
	InputGroupText,
	Input,
	Button,
	DropdownToggle,
	DropdownMenu,
	CustomInput,
	DropdownItem,
} from "reactstrap";
let Dropzone = null;
class DropzoneWrapper extends Component {
	state = {
		isClient: false,
	};
	componentDidMount = () => {
		Dropzone = require("react-dropzone").default;
		this.setState({ isClient: true });
	};
	render() {
		return Dropzone ? {this.props.children}  : null;
	}
}
const styleHeaderText = {
	color: "brown",
};
const selectInstanceId = 1;
class JawabanBanding extends Component {
	constructor(props) {
		super(props);
		this.state = {
			selectedOption: null,
			files: [],
		};
	}
	handleChangeSelect = (selectedOption) => {
		this.setState({ selectedOption });
	};
	onDrop = (files) => {
		this.setState({
			files: files.map((file) =>
				Object.assign(file, {
					preview: URL.createObjectURL(file),
				})
			),
			stat: "Added " + files.length + " file(s)",
		});
	};
	uploadFiles = (e) => {
		e.preventDefault();
		e.stopPropagation();
		this.setState({
			stat: this.state.files.length ? "Dropzone ready to upload " + this.state.files.length + " file(s)" : "No files added.",
		});
	};
	clearFiles = (e) => {
		e.preventDefault();
		e.stopPropagation();
		this.setState({
			stat: this.state.files.length ? this.state.files.length + " file(s) cleared." : "No files to clear.",
		});
		this.setState({
			files: [],
		});
	};
	render() {
		const { files } = this.state;
		const thumbs = files.map((file, index) => (
			
				
					
						Universitas Satyagama 
						0742/O/1990
						Jalan Kamal Raya No 2-A Cengkareng
					 
				 
				
					
						
							Permohonan Banding
							{/* Form pembuatan laporan baru v.0.1  */}
						
						
							< back 
							
						
					 
					
						
								{/* 
									Informasi Dokumen 
								  */}
								
									
										Detail Laporan
											
										
										Jawaban
											
										
									
								 
							 
							{/* END card */}
						
						
								
									
										Universitas Satyagama 
										0742/O/1990
									 
									
										
											 
										
											 
									 
								 
							 
						
					
					
						
								
									Riwayat 
									{/* DataTables has most features enabled by default, so all you need to do to use it with your own tables is to call the construction function: $().DataTable();.
 */}
								 
								
									
										
									 
								 
							 
						
					
				 
			 
		);
	}
}
export default JawabanBanding;