import{aI as p,aP as o,L as u,ao as m,v as a,f as i,e as n}from"./app-k0jcl5PQ.js";import{C as S}from"./He_KJRxT.chunk.js";const A="classrooms.addStudentsChoicesMethod",t=u.encloseNamespace(A);function h(e){const[s,l]=p.useState(null),c={application:n.CLASSROOMS,action:i.Classrooms.ADD_STUDENTS,args:[e.classroomId]};function d(){if(s.id!=="add-manually"){a.trigger({application:n.CLASSROOMS,action:i.Classrooms.GENERATE_JOIN_LINK,args:[e.classroomId]}),e.closePopup();return}a.trigger(c),e.closePopup()}const r=[{id:"add-manually",title:t("addManuallyTitle"),description:t("addManuallyDescription"),imageUrl:o.AddStudents.Method.MANUAL_ADD},{id:"join-link",title:t("classLinkInviteTitle"),description:t("classLinkInviteDescription"),imageUrl:o.AddStudents.Method.INVITE}];return m.jsx(S,{title:t("title"),closePopup:e.closePopup,selectOption:l,selection:s,options:r,cancelButtonProps:{onClick:e.closePopup,text:t("cancel"),variant:"link"},submitButtonProps:{onClick:d,text:t("next"),variant:"dark",disabled:!s}})}export{h as AddStudentsChoicesMethodView};
//# sourceMappingURL=ygRYiuut.chunk.js.map
