import React, { useRef, Component } from 'react'; import { Row, Col, Button, Popover, PopoverHeader, PopoverBody, Card, CardBody, Modal, ModalBody, ModalFooter } from "reactstrap"; import ComponentToPrint from "./Modul_print"; import ReactToPrint, { PrintContextConsumer } from 'react-to-print'; import id from 'date-fns/locale/id'; import CopyToClipboard from "react-copy-to-clipboard"; import { ENV } from '../../env'; import Swal from 'sweetalert2'; import Datetime from "react-datetime"; class Modul extends Component { constructor(props) { super(props); this.state = { selectedPeserta: "", copiedd: false, }; }; handleOpenAlert = () => { Swal.fire({ icon: 'error', title: 'Oops...', html: 'Maaf anda tidak memiliki akses untuk menyelesaikan
proses ini.
', confirmButtonColor: "#3e3a8e", confirmButtonText: 'Oke' }) }; CloseCopiedd = () => { setTimeout(() => { this.setState({ copiedd: !this.state.copiedd }); }, 1000); } Copiedd = () => this.setState({ copiedd: !this.state.copiedd }) render() { const { dataLaporan, daftarPeserta } = this.props return (