import { useTranslation } from "next-i18next"; import { useState } from "react"; import TrashButton from "./TrashButton"; import { faExclamationTriangle, faCheck, faArrowLeft, faTrashAlt } from "@fortawesome/free-solid-svg-icons"; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Row, Col } from "reactstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; const ConfirmModal = ({ tabIndex, title, candidates, grades, isTimeLimited, start, finish, emails, restrictResult, className, confirmCallback }) => { const [visibled, setVisibility] = useState(false); const { t } = useTranslation(); const toggle = () => setVisibility(!visibled) return (
{t("The form contains no address.")}
{t(
"The election will be opened to anyone with the link"
)}
{t( "The results page will not be accessible until the end date is reached." )}{" "} ({finish.toLocaleDateString()} {t("at")}{" "} {finish.toLocaleTimeString()})