import { Dialog, Transition } from "@headlessui/react"; import { Fragment } from "react"; import Button from "./Low/Button"; interface Props { isOpen: boolean; blankQuestions?: boolean; finishingWhat? : string; onClose: (next?: boolean) => void; } export default function QuestionsModal({ isOpen, onClose, blankQuestions = true, finishingWhat = "module" }: Props) { return ( onClose(false)} className="relative z-50">
{blankQuestions ? ( <> Questions Unanswered Please note that you are finishing the current {finishingWhat} and once you proceed to the next {finishingWhat}, you will no longer be able to change the answers of the current one, including your unanswered questions.

Are you sure you want to continue without completing those questions?
): ( <> Confirm Submission Please note that you are finishing the current {finishingWhat} and once you proceed to the next {finishingWhat}, you will no longer be able to review the answers of the current one.

Are you sure you want to continue?
)}
); }