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 (
{this.props.role === 2024 ? : { return }} content={() => this.componentRef} /> }
(this.componentRef = el)} query={this.props.query} />
{ENV === "local" &&
Link Berhasil Disalin
} {ENV === "production" &&
Link Berhasil Disalin
} {ENV === "development" &&
Link Berhasil Disalin
}
PESERTA RAPAT
{daftarPeserta ? daftarPeserta.data?.daftar_kehadiran_peserta?.map((value) => (
{value.nama}
)) : ""}
) } } export default Modul