\n {data?.map((turma, index) => {\n const isDisabled = () => {\n return turma.situacao != \"Disponível\";\n };\n const isPicked = () => {\n return turma.turmaid === currentValue;\n };\n const isAlreadyEnrolled = () => {\n return turma.situacao == \"Matriculado\";\n };\n const aulasArray = turma.AULAS.split(\",\");\n return (\n
\n \n {turma.nome_turma} - {renderTurmaStatus(turma)}\n \n \n Começa:{\" \"}\n {moment(\n turma.datainicio,\n \"DD-MM-YYYY HH:mm:ss\"\n ).format(\"lll\")}{\" \"}\n \n \n Acaba:{\" \"}\n {moment(\n turma.dataencerramento,\n \"DD-MM-YYYY HH:mm:ss\"\n ).format(\"lll\")}\n \n \n\n \n \n \n Aulas:\n \n {aulasArray.map((aula) => {\n return (\n - \n \n {aula}\n \n
\n );\n })}\n
\n \n );\n })}\n
\n