import React from "react"; import Modal from "../../components/Modal/Modal"; function AcceptChoice({ onClose, onSubmit, designation, applicantDesignation, }) { const handleSubmit = (toVC = false) => { onSubmit(toVC); onClose(); }; return (

Confirm Application Approval

{(() => { switch (designation) { case "FACULTY": return "By approving, you will forward this application to the Head of Department (HOD)."; case "HOD": return "By approving, you will forward this application to the Head of Institute (HOI)."; case "HOI": if (applicantDesignation === "STUDENT") { return "By approving, you will forward this application to Accounts."; } else { return "By approving, you can forward this application to either the Vice Chancellor (VC) or Accounts."; } case "VC": return "By approving, you will forward this application to Accounts."; case "ACCOUNTS": return "By approving, you confirm that the given expenses will be paid by the institute."; default: return ""; } })()}

{/* Cancel Button */} {(() => { switch (designation) { case "FACULTY": return ( ); case "HOD": return ( ); case "HOI": return (
{applicantDesignation !== "STUDENT" && ( )}
); case "VC": return ( ); case "ACCOUNTS": return ( ); default: return null; } })()}
); } export default AcceptChoice;